Browse Source

fixed test break.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
1072abb189
  1. 2
      framework/yii/db/Connection.php

2
framework/yii/db/Connection.php

@ -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]);

Loading…
Cancel
Save