summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-05-08 20:54:03 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-05-08 20:54:03 +0200
commit0f13a13bbf7bc54dc2ef4dda44bbe2f3890af8c6 (patch)
tree871febccbebafaca3128b6d931619b196699189a /system/database/DB_driver.php
parent6a217c34b004a439ecc28f7f79673ebde00499d3 (diff)
added SET to the list of write type queries
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 5a55002f7..a5ca75dd6 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -576,7 +576,7 @@ class CI_DB_driver {
*/
function is_write_type($sql)
{
- if (! preg_match('/^\s*"?(INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|LOAD DATA|COPY|ALTER|GRANT|REVOKE|LOCK|UNLOCK)\s+/i', $sql))
+ if (! preg_match('/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|LOAD DATA|COPY|ALTER|GRANT|REVOKE|LOCK|UNLOCK)\s+/i', $sql))
{
return FALSE;
}