From 1072abb18952ef440e3062effa15daa99e83aff3 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 24 Aug 2013 07:23:21 -0400 Subject: [PATCH] fixed test break. --- framework/yii/db/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/db/Connection.php b/framework/yii/db/Connection.php index d7da806..26c4537 100644 --- a/framework/yii/db/Connection.php +++ b/framework/yii/db/Connection.php @@ -505,7 +505,7 @@ class Connection extends Component public function quoteSql($sql) { $db = $this; - return preg_replace_callback('/(\\{\\{(%?[\w\-\. ]+)\\}\\}|\\{\\{([\w\-\. ]+%?)\\}\\}|\\[\\[([\w\-\. ]+)\\]\\])/', + return preg_replace_callback('/(\\{\\{(%?[\w\-\. ]+%?)\\}\\}|\\[\\[([\w\-\. ]+)\\]\\])/', function ($matches) use ($db) { if (isset($matches[3])) { return $db->quoteColumnName($matches[3]);