diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-07-14 16:26:13 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-07-14 16:26:13 +0200 |
commit | 060052de1f91b9b1fc533d0957eb18dab9057bfe (patch) | |
tree | 4490b64068c606808265bab645b521e8b36b751c /system | |
parent | 9a6e40fc2b34a03d9727012e7ec69a5f12242e6f (diff) |
Fixed a bug in database driver where num_rows property wasn't getting updated
Diffstat (limited to 'system')
-rw-r--r-- | system/database/DB_driver.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 8f238fc52..381b70f42 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -325,7 +325,8 @@ class CI_DB_driver { $RES = new $driver();
$RES->conn_id = $this->conn_id;
$RES->result_id = $this->result_id;
-
+ $RES->num_rows = $RES->num_rows();
+
if ($this->dbdriver == 'oci8')
{
$RES->stmt_id = $this->stmt_id;
|