HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
[ZF2-281] && [ZF2-262] Cannot Count rows in a MySQLi Result Set /
Zend\Db\Adapter\Driver\Mysqli\Result Iterator implementation mangled Cleaned both Result.php and ResultSet.php and made them compliant with the Iterator interface 1) fixed the count() issue 2) fixed the 2+ next() issue (2 or more next() did not advance mysqli pointer) 3) fixed the issue with rewind() and mysqli losing fetched data, by buffering mysqli results 4) simplified Result.php by eliminating the currentComplete and nextComplete, both aggregated into currentData = null | false | array 5) removed caching of count() in ResultSet.php (row count is already stored in Result.php) 6) fixed a issue with the logic of pointer (pointer can be changed only by next() and rewind(), and should not be touched by current()) Change-Id: I5bf38cd6adb5330deff0400428db3d6ded651efc
- Loading branch information...
commit d8027ac9958eaf67d9cf056e0987d3c9f91a54f8 1 parent e9f287f
Duccio Gasparri authored
Showing with 116 additions and 64 deletions.