mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 06:17:56 +08:00
fixed test break.
This commit is contained in:
@@ -505,7 +505,7 @@ class Connection extends Component
|
|||||||
public function quoteSql($sql)
|
public function quoteSql($sql)
|
||||||
{
|
{
|
||||||
$db = $this;
|
$db = $this;
|
||||||
return preg_replace_callback('/(\\{\\{(%?[\w\-\. ]+)\\}\\}|\\{\\{([\w\-\. ]+%?)\\}\\}|\\[\\[([\w\-\. ]+)\\]\\])/',
|
return preg_replace_callback('/(\\{\\{(%?[\w\-\. ]+%?)\\}\\}|\\[\\[([\w\-\. ]+)\\]\\])/',
|
||||||
function ($matches) use ($db) {
|
function ($matches) use ($db) {
|
||||||
if (isset($matches[3])) {
|
if (isset($matches[3])) {
|
||||||
return $db->quoteColumnName($matches[3]);
|
return $db->quoteColumnName($matches[3]);
|
||||||
|
|||||||
Reference in New Issue
Block a user