diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-07-03 13:45:00 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-07-03 13:45:00 +0200 |
commit | b2f60337393604fde1ff7cb180405ab111b01ab1 (patch) | |
tree | 2b992b8edaeeb17802bc887100dcf847e6fcf59f /system/database/drivers/sqlsrv/sqlsrv_driver.php | |
parent | ec2477f3d1c0bf8dbf1bd8c3aa4b5ecbea8ded95 (diff) |
Fix issue #1567
Diffstat (limited to 'system/database/drivers/sqlsrv/sqlsrv_driver.php')
-rw-r--r-- | system/database/drivers/sqlsrv/sqlsrv_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/sqlsrv/sqlsrv_driver.php b/system/database/drivers/sqlsrv/sqlsrv_driver.php index 12482dee0..3a4fc0aff 100644 --- a/system/database/drivers/sqlsrv/sqlsrv_driver.php +++ b/system/database/drivers/sqlsrv/sqlsrv_driver.php @@ -143,7 +143,7 @@ class CI_DB_sqlsrv_driver extends CI_DB { */ protected function _execute($sql) { - return (is_write_type($sql) && stripos($sql, 'INSERT') === FALSE) + return ($this->is_write_type($sql) && stripos($sql, 'INSERT') === FALSE) ? sqlsrv_query($this->conn_id, $sql) : sqlsrv_query($this->conn_id, $sql, NULL, array('Scrollable' => SQLSRV_CURSOR_STATIC)); } |