diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-02-13 00:40:55 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-02-13 00:40:55 +0100 |
commit | 36cd531e9874d32a272088838055bdd56045c41b (patch) | |
tree | 7634142dbcb50d09304fdc96253eba1905424f59 /system/database/drivers/cubrid | |
parent | 6ae2852d0e5b112baa302995d1448f1147a7bf0e (diff) |
Fix auto_commit initialization
Diffstat (limited to 'system/database/drivers/cubrid')
-rw-r--r-- | system/database/drivers/cubrid/cubrid_driver.php | 5 |
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 { |