summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-28 16:54:27 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-28 16:54:27 +0200
commit7db0f597c78cd5485b566d9cd6e3935a8489c540 (patch)
treed40a81837115fa12bb74ea2630336af9386379ab /system/database/DB_driver.php
parentd580999cead0aa37d705c2f32e02712a2d522deb (diff)
Fix issue #1546
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 739b25187..380bbc301 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -970,6 +970,11 @@ abstract class CI_DB_driver {
return $item;
}
+ // Avoid breaking functions inside queries
+ elseif (strpos($item, '(') !== FALSE)
+ {
+ return $item;
+ }
static $preg_ec = array();