summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mssql/mssql_driver.php
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-10-07 03:15:48 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-10-07 03:15:48 +0200
commit218839a7f4910834e4e991c6650da05b1bd7f743 (patch)
tree6a2ba50b3e96f593b086cbdaf24a30ce66b7a770 /system/database/drivers/mssql/mssql_driver.php
parenta94264a4e1c0d5b56be22fa6355b761d5c455371 (diff)
Fixed bug (#3472) that was adding quotes incorrectly.
Diffstat (limited to 'system/database/drivers/mssql/mssql_driver.php')
-rw-r--r--system/database/drivers/mssql/mssql_driver.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php
index 1c6249aef..d0e1092e6 100644
--- a/system/database/drivers/mssql/mssql_driver.php
+++ b/system/database/drivers/mssql/mssql_driver.php
@@ -470,11 +470,11 @@ class CI_DB_mssql_driver extends CI_DB {
// This function may get "field >= 1", and need it to return ""field" >= 1"
$lbound = ($first_word_only === TRUE) ? '' : '|\s|\(';
- $item = preg_replace('/(^'.$lbound.')([\w\d\-\_]+?)(\s|\)|$)/iS', '$1"$2"$3', $item);
+ $item = preg_replace('/(^'.$lbound.')([\w\d\-\_]+?)(\s|\)|$)/iS', '$1$2$3', $item);
}
else
{
- return "\"{$item}\"";
+ return $item;
}
$exceptions = array('AS', '/', '-', '%', '+', '*', 'OR', 'IS');