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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 44 + 47 = ?

 
 [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