Skip to content

Commit

Permalink
Fix failing test in SQLite.
Browse files Browse the repository at this point in the history
SQLite does not handle subqueries in virtual fields well. However, the
original issue was that the generated query was invalid which
find(first) will still catch.
  • Loading branch information
markstory committed May 22, 2015
1 parent 52a0d64 commit 4a3b2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Model/ModelReadTest.php
Expand Up @@ -7864,7 +7864,7 @@ public function testVirtualFieldSubqueryReservedWords() {
'sub_test' => $sub
);

$result = $user->field('sub_test', array('id' => 1));
$result = $user->find('first');
$this->assertNotEmpty($result);
}

Expand Down

0 comments on commit 4a3b2e2

Please sign in to comment.