We shouldn't put LIMIT directly into SQL since that's not always portable. We should be using db_query_range(), instead. This is one of the last things pcorbett was trying to accomplish with a monolithic patch over at #170935: Patch for some new functions I added as well as some updates to existing ones which hasn't already been resolved.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 346784_db_query_range.1.d5.patch | 2.91 KB | dww |
| #1 | 346784_db_query_range.1.d6.patch | 1.8 KB | dww |
Comments
Comment #1
dww(Untested, but this should do it).
Comment #2
dwwI tested. dmitrig01 liked the code. Committed to DRUPAL-6--1 and DRUPAL-5--2.