I'd like to suggest that the next version of SQLite allow arbitrary expressions to be used as arguments to the LIMIT clause. The current <integer> limitation means that LIMIT cannot be used with a function, i.e. parameterized via a custom function. This would be useful in paging through large result sets.
Thanks -- Keith.