diff options
author | admin <devnull@localhost> | 2006-10-05 06:22:54 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-05 06:22:54 +0200 |
commit | 44351bfc2a4dbd384bce7393cd76333885bf2c7f (patch) | |
tree | ff04786fbb507ff2dc4452f3307efbc973856ac5 /system/database | |
parent | af644691beae3cbfb3598238d129196da4c7e5bb (diff) |
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/drivers/mysql/mysql_result.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/system/database/drivers/mysql/mysql_result.php b/system/database/drivers/mysql/mysql_result.php index 91c4af12c..3fdfc8183 100644 --- a/system/database/drivers/mysql/mysql_result.php +++ b/system/database/drivers/mysql/mysql_result.php @@ -118,6 +118,23 @@ class CI_DB_mysql_result extends CI_DB_result { // -------------------------------------------------------------------- /** + * Data Seek + * + * Moves the internal pointer to the desired offset. We call + * this internally before fetching results to make sure the + * result set starts at zero + * + * @access private + * @return array + */ + function _data_seek($n = 0) + { + mysql_data_seek($this->result_id, $n); + } + + // -------------------------------------------------------------------- + + /** * Result - associative array * * Returns the result set as an array @@ -141,7 +158,7 @@ class CI_DB_mysql_result extends CI_DB_result { * @return object */ function _fetch_object() - { + { return mysql_fetch_object($this->result_id); } |