summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/database/drivers/cubrid/cubrid_driver.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/database/drivers/cubrid/cubrid_driver.php b/system/database/drivers/cubrid/cubrid_driver.php
index f7dec72de..a0d874a8c 100644
--- a/system/database/drivers/cubrid/cubrid_driver.php
+++ b/system/database/drivers/cubrid/cubrid_driver.php
@@ -66,7 +66,10 @@ class CI_DB_cubrid_driver extends CI_DB {
if (preg_match('/^CUBRID:[^:]+(:[0-9][1-9]{0,4})?:[^:]+:[^:]*:[^:]*:(\?.+)?$/', $this->dsn, $matches))
{
- preg_match('/autocommit=on/', $matches[2], $matches) OR $this->auto_commit = FALSE;
+ if (preg_match('/autocommit=off/', $matches[2], $matches))
+ {
+ $this->auto_commit = FALSE;
+ }
}
else
{