summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
authorAaron Krebs <akrebs@ualberta.ca>2013-12-11 20:32:23 +0100
committerAaron Krebs <akrebs@ualberta.ca>2013-12-11 20:32:23 +0100
commit0433431188b9e71841ae292cb218ca89ded58b87 (patch)
tree3f728f79cf7bde0bcf287282451ba72b534f478b /system/database/drivers
parent9c5c490bdc61ebd27593577480ec484f0b0f6367 (diff)
Make oci_execute() calls inside num_rows() non-committing. Fixes #696.
Fixes bug in Oracle driver. Calls to oci_execute() inside num_rows() of the Oracle driver can be made non-committing to fix bug with transactions. Since calls to oci_execute are only there to reset which row is next in line for oci_fetch() calls, it's fine to not commit.
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/oci8/oci8_result.php4
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 3421278a5..f6138c014 100644
--- a/system/database/drivers/oci8/oci8_result.php
+++ b/system/database/drivers/oci8/oci8_result.php
@@ -43,11 +43,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);
}
}