Skip to content

Commit

Permalink
Remove function that doesn't exist in postgres/sqlite.
Browse files Browse the repository at this point in the history
Fix the builds.
  • Loading branch information
markstory committed Aug 26, 2014
1 parent fd505ce commit d3e760f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/ORM/QueryTest.php
Expand Up @@ -2033,7 +2033,7 @@ public function testAutoFieldsWithAssociations() {
$table->belongsTo('Authors');

$result = $table->find()
->select(['myField' => '(SELECT RAND())'])
->select(['myField' => '(SELECT 2 + 2)'])
->autoFields(true)
->hydrate(false)
->contain('Authors')
Expand All @@ -2056,7 +2056,7 @@ public function testAutoFieldsWithContainQueryBuilder() {
$table->belongsTo('Authors');

$result = $table->find()
->select(['myField' => '(SELECT RAND())'])
->select(['myField' => '(SELECT 2 + 2)'])
->autoFields(true)
->hydrate(false)
->contain(['Authors' => function($q) {
Expand Down

0 comments on commit d3e760f

Please sign in to comment.