Skip to content

Commit

Permalink
More tweaks for sqlserver compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 12, 2018
1 parent 4278aac commit 689ab57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Database/QueryTest.php
Expand Up @@ -4586,13 +4586,13 @@ public function testCastResults()
$typeMap = new TypeMap($fields + ['a' => 'integer']);
$results = $query
->select(array_keys($fields))
->select(['a' => 'id'])
->select(['a' => 'is_active'])
->from('profiles')
->setSelectTypeMap($typeMap)
->where(['user_id' => 1])
->execute()
->fetchAll('assoc');
$this->assertSame([['user_id' => 1, 'is_active' => false, 'a' => 1]], $results);
$this->assertSame([['user_id' => 1, 'is_active' => false, 'a' => 0]], $results);
}

/**
Expand Down

0 comments on commit 689ab57

Please sign in to comment.