Commit f7fc1faa by Alexander Makarov

Fixed condition building for booleans

parent 7c7783a5
......@@ -268,6 +268,9 @@ EOF;
if (is_array($value)) { // IN condition
$parts[] = $this->buildInCondition('in', [$column, $value], $columns);
} else {
if (is_bool($value)) {
$value = (int)$value;
}
$column = $this->addColumn($column, $columns);
if ($value === null) {
$parts[] = "$column==nil";
......
......@@ -161,12 +161,6 @@ class ActiveRecordTest extends RedisTestCase
$this->markTestSkipped('Redis does not store/find null values correctly.');
}
public function testBooleanAttribute()
{
// https://github.com/yiisoft/yii2/issues/1311
$this->markTestSkipped('Redis does not store/find boolean values correctly.');
}
public function testFindEagerViaRelationPreserveOrder()
{
$this->markTestSkipped('Redis does not support orderBy.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment