From 559d779576c61fd87b1c7278d6d7b7c10ed885ea Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Wed, 9 Oct 2013 08:59:54 +0400 Subject: [PATCH] Update placeholder regular expression SqlDbDriver.quoteIdentifier(). --- model/SqlDbDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/SqlDbDriver.php b/model/SqlDbDriver.php index e555c19..83014c6 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-z0-9_]+)/u', $segment)) { + if (!preg_match('/(\?|:[A-z][A-z0-9_]*+)/u', $segment)) { $segment = $this->identifier_quote . $segment . $this->identifier_quote; } }