diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-10-09 00:38:31 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-10-09 00:38:31 +0200 |
commit | a8664295b31968aa29556b93b13bb6a6080be19e (patch) | |
tree | 404a63086198a559f804789e736b0c7a0c29d6e6 | |
parent | d8ee6c86e4a3bbaf392679773e69f4791e3a3239 (diff) |
moved call to $RES->num_rows() further down in code so that oracle-specific class variables would be set properly as needed before executing
-rw-r--r-- | system/database/DB_driver.php | 4 | ||||
-rw-r--r-- | user_guide/changelog.html | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 257f1ee9b..572595f42 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -375,7 +375,6 @@ 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')
{
@@ -385,6 +384,9 @@ class CI_DB_driver { $this->stmt_id = FALSE;
}
+ // oci8 vars must be set before calling this
+ $RES->num_rows = $RES->num_rows();
+
// Is query caching enabled? If so, we'll serialize the
// result object and save it to a cache file.
if ($this->cache_on == TRUE AND $this->_cache_init())
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index ce9400590..c6154f082 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -128,6 +128,7 @@ SVN Revision: XXXX</p> <li>Fixed a bug in <kbd>highlight_code()</kbd> in the <a href="helpers/text_helper.html">Text helper</a> that would leave a stray </span> in certain cases.</li>
<li>Fixed Oracle bug (#3306) that was preventing multiple queries in one action.</li>
<li>Fixed ODBC bug that was ignoring connection params due to its use of a constructor.</li>
+ <li>Fixed a DB driver bug with num_rows() that would cause an error with the Oracle driver.</li>
</ul>
<h2>Version 1.6.3</h2>
|