From ff148f2f95de99696112396116dcac54682d0a54 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Thu, 15 May 2014 17:47:07 +0400 Subject: [PATCH] SqlDbDriver - cancel identifier quotu for symbol "*" --- model/SqlDbDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/SqlDbDriver.php b/model/SqlDbDriver.php index 1df208d..ee90b45 100644 --- a/model/SqlDbDriver.php +++ b/model/SqlDbDriver.php @@ -110,7 +110,7 @@ abstract class SqlDbDriver extends DbDriver { $ident = explode('.', $ident); 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; } }