dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 377 forks source link

.limit() is ignored #552

Open AuspeXeu opened 10 years ago

AuspeXeu commented 10 years ago

I use the following snippet to retreive a set of entities with an offset and limit.

image.find({}).offset(page * size).limit(size).run(function (err, entities) { ... })

It seems that the limit is completely ignored whereas the offset is handled correctly.

Node: 0.10.31 orm: 2.1.19 driver: sqlite