Browse Source

SqlDbDriver - cancel identifier quotu for symbol "*"

namespace
Alexander Demidov 11 years ago
parent
commit
ff148f2f95
  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-z][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