diff options
author | a-krebs <akrebs@ualberta.ca> | 2011-11-23 08:04:34 +0100 |
---|---|---|
committer | a-krebs <akrebs@ualberta.ca> | 2011-11-23 08:04:34 +0100 |
commit | 0372f1ade3029c8363f1ed13545590c45d45d82f (patch) | |
tree | 5369aca7534306ae9ba0673589394237a0fa8404 | |
parent | b25bf9db4af963269362e16cec0a99326c4439ad (diff) |
fix to issue #696 - make oci_execute calls inside num_rows non-committing, since they are only there to reset which row is next in line for oci_fetch calls and thus don't need to be committed.
-rw-r--r-- | system/database/drivers/oci8/oci8_result.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/oci8/oci8_result.php b/system/database/drivers/oci8/oci8_result.php index 3ec71a9d6..f32559289 100644 --- a/system/database/drivers/oci8/oci8_result.php +++ b/system/database/drivers/oci8/oci8_result.php @@ -57,11 +57,11 @@ class CI_DB_oci8_result extends CI_DB_result { if ($this->num_rows === 0 && count($this->result_array()) > 0) { $this->num_rows = count($this->result_array()); - @oci_execute($this->stmt_id); + @oci_execute($this->stmt_id, OCI_DEFAULT); if ($this->curs_id) { - @oci_execute($this->curs_id); + @oci_execute($this->curs_id, OCI_DEFAULT); } } |