Quick question about pageSize and pageNumber
I've been trying to get pagination working (LLBL 3 with PostgreSQL 8.4) but I'm not sure if I'm reading the docs wrong or there's a bug.
Executing the following:
adapter.FetchEntityCollection(_collection, _bucket, 0, _sorter, _path, 1, 10);
executes:
DESC LIMIT 0 OFFSET 10
I'd have expected that to execute LIMIT 10 OFFSET 0
Also, executing the following:
adapter.FetchEntityCollection(_collection, _bucket, 0, _sorter, _path, 4, 10);
executes:
DESC LIMIT 30 OFFSET 10
Should this not be LIMIT 10 OFFSET 30?
I double checked the intellisense and its definitely pageNumber first, pageSize second.
So then I tried:
adapter.FetchEntityCollection(_collection, _bucket, 0, _sorter, _path, 10, 4);
and this executes:
DESC LIMIT 36 OFFSET 4
Anyhow, you get the idea I'm sure, am I wrong or is LLBL?
Thanks!
Garrett