From 3b390d968b4283605ff068e6b04d6b849f2f4ccb Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Tue, 29 Apr 2014 19:44:57 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=B2=D0=B0=20ter?= =?UTF-8?q?m=20=D0=B2=20=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D0=B8=20where?= =?UTF-8?q?=20=D0=B8=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=20=D0=B2=20=D1=82?= =?UTF-8?q?=D0=BE=D0=BC=20=D1=87=D0=B8=D1=81=D0=BB=D0=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/SqlDbDriver.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/model/SqlDbDriver.php b/model/SqlDbDriver.php index 5e13557..1df208d 100644 --- a/model/SqlDbDriver.php +++ b/model/SqlDbDriver.php @@ -150,7 +150,10 @@ abstract class SqlDbDriver extends DbDriver } } else { if (is_array($term)) { - $term = new DbExpr('(' . implode(',', array_map(function($item){return intval($item);}, $term)) . ')'); + foreach ($term as &$val) { + $val = $this->driverQuote($val); + } + $term = new DbExpr('(' . implode(',', $term) . ')'); } $term = $this->quoteInto($cond, $term); }