Browse Source

Fixes issue #80

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
6166e70f20
  1. 2
      framework/db/Connection.php

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

Loading…
Cancel
Save