From 6166e70f201817c74cb4f5109ee7fb337196c40a Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 4 May 2013 20:17:43 -0400 Subject: [PATCH] Fixes issue #80 --- framework/db/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/db/Connection.php b/framework/db/Connection.php index 797508a..f71b940 100644 --- a/framework/db/Connection.php +++ b/framework/db/Connection.php @@ -517,7 +517,7 @@ class Connection extends Component public function quoteSql($sql) { $db = $this; - return preg_replace_callback('/(\\{\\{([\w\-\. ]+)\\}\\}|\\[\\[([\w\-\. ]+)\\]\\])/', + return preg_replace_callback('/(\\{\\{([%\w\-\. ]+)\\}\\}|\\[\\[([\w\-\. ]+)\\]\\])/', function($matches) use($db) { if (isset($matches[3])) { return $db->quoteColumnName($matches[3]);