silverstripe / silverstripe-sqlite3

SQLite3 DB Adapter for Silverstripe
BSD 3-Clause "New" or "Revised" License
8 stars 19 forks source link

FIX: SQLite3Query::seek() failed to return a record #30

Closed kinglozzer closed 7 years ago

kinglozzer commented 7 years ago

This brings SQLite3Query::seek() in line with other drivers - Query::seek() should seek to the given offset, and then return the record.

The addition to numRecords() is because without it, seek() can interfere with the row count by changing the pointer, so we need go back to the first row before we attempt to count them all.