|
|
@ -565,9 +565,7 @@ class QueryBuilder extends \yii\base\Object |
|
|
|
|
|
|
|
|
|
|
|
list($column, $values) = $operands; |
|
|
|
list($column, $values) = $operands; |
|
|
|
|
|
|
|
|
|
|
|
if (!is_array($values)) { |
|
|
|
$values = (array)$values; |
|
|
|
$values = array($values); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($values === array() || $column === array()) { |
|
|
|
if ($values === array() || $column === array()) { |
|
|
|
return $operator === 'in' ? '0=1' : ''; |
|
|
|
return $operator === 'in' ? '0=1' : ''; |
|
|
@ -633,9 +631,7 @@ class QueryBuilder extends \yii\base\Object |
|
|
|
|
|
|
|
|
|
|
|
list($column, $values) = $operands; |
|
|
|
list($column, $values) = $operands; |
|
|
|
|
|
|
|
|
|
|
|
if (!is_array($values)) { |
|
|
|
$values = (array)$values; |
|
|
|
$values = array($values); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($values === array()) { |
|
|
|
if ($values === array()) { |
|
|
|
return $operator === 'LIKE' || $operator === 'OR LIKE' ? '0=1' : ''; |
|
|
|
return $operator === 'LIKE' || $operator === 'OR LIKE' ? '0=1' : ''; |
|
|
|