Browse Source

Update placeholder regular expression SqlDbDriver.quoteIdentifier().

namespace
Alexander Demidov 11 years ago
parent
commit
559d779576
  1. 2
      model/SqlDbDriver.php

2
model/SqlDbDriver.php

@ -110,7 +110,7 @@ abstract class SqlDbDriver extends DbDriver
{ {
$ident = explode('.', $ident); $ident = explode('.', $ident);
foreach ($ident as &$segment) { foreach ($ident as &$segment) {
if (!preg_match('/(\?|:[A-z0-9_]+)/u', $segment)) {
if (!preg_match('/(\?|:[A-z][A-z0-9_]*+)/u', $segment)) {
$segment = $this->identifier_quote . $segment . $this->identifier_quote; $segment = $this->identifier_quote . $segment . $this->identifier_quote;
} }
} }

Loading…
Cancel
Save