Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0b4

Bug #17299 Limited queries always return ($limit - 1) rows
Submitted: 2010-04-08 14:42 UTC
From: iceq Assigned:
Status: Open Package: MDB2_Driver_mssql (version 1.3.0b2)
PHP Version: 5.2.12 OS: no matter
Roadmaps: (Not assigned)    
Subscription  


 [2010-04-08 14:42 UTC] iceq (Yuri Kugatov)
Description: ------------ Is it supposed to be so that when I query N rows I always get N-1? E.g. in pagination it always misses Nth row. I locally fixed it by adding MDB2_BufferedResult_mssql::__construct () with $this->limit = max(0, $limit); instead of parental $this->limit = max(0, $limit - 1); and it seems to work fine now. Why is $limit being decremented in the first place?

Comments