summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/sqlite3/sqlite3_result.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-12-04 12:32:16 +0100
committerAndrey Andreev <narf@bofh.bg>2012-12-04 12:32:16 +0100
commit69edc4368d6c6588936b3b6c8bcb9d36626d363a (patch)
tree17ee7f48f713fd4d40d6299b8948f7c1fe436bfb /system/database/drivers/sqlite3/sqlite3_result.php
parentc07c4855f808a0b3c0aac7d8056f38161185a4c7 (diff)
Rename DB_result _data_seek() to data_seek() and make it publicly available
(as requested in #2050)
Diffstat (limited to 'system/database/drivers/sqlite3/sqlite3_result.php')
-rw-r--r--system/database/drivers/sqlite3/sqlite3_result.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/sqlite3/sqlite3_result.php b/system/database/drivers/sqlite3/sqlite3_result.php
index 44fef8909..69c42002c 100644
--- a/system/database/drivers/sqlite3/sqlite3_result.php
+++ b/system/database/drivers/sqlite3/sqlite3_result.php
@@ -175,10 +175,10 @@ class CI_DB_sqlite3_result extends CI_DB_result {
* @param int $n (ignored)
* @return array
*/
- protected function _data_seek($n = 0)
+ public function data_seek($n = 0)
{
// Only resetting to the start of the result set is supported
- return $this->result_id->reset();
+ return ($n > 0) ? FALSE : $this->result_id->reset();
}
}