diff options
author | Andrey Andreev <narf@devilix.net> | 2013-08-06 12:59:23 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-08-06 12:59:23 +0200 |
commit | 79f888b27bd67724b30aa6dd30e2ae5162b1fea8 (patch) | |
tree | 5c175cffa0bdde7a2d969462b0bf544c7b62cff8 /system/database/DB_driver.php | |
parent | e66ab18b2b4fa47bde7dbe1d6b371fcca023237b (diff) |
Fix #2501 & another -related bug
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r-- | system/database/DB_driver.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 425657e17..53decf014 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -1375,7 +1375,9 @@ abstract class CI_DB_driver { $fields[$this->protect_identifiers($key)] = $this->escape($val); } - return $this->_update($this->protect_identifiers($table, TRUE, NULL, FALSE), $fields); + $sql = $this->_update($this->protect_identifiers($table, TRUE, NULL, FALSE), $fields); + $this->_reset_write(); + return $sql; } // -------------------------------------------------------------------- |