Обработка массива term в условии where и строк в том числе.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user