Skip to content
Permalink
Browse files

More tweaks for sqlserver compat.

  • Loading branch information...
markstory committed Apr 12, 2018
1 parent 4278aac commit 689ab57395a54cb4ba9273251e47cbcd2634f9b5
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/TestCase/Database/QueryTest.php
@@ -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);
}
/**

0 comments on commit 689ab57

Please sign in to comment.
You can’t perform that action at this time.