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); }