From d3e760f49d7c05ce68355e004a66ca4c9c05e438 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 26 Aug 2014 02:38:24 +0100 Subject: [PATCH] Remove function that doesn't exist in postgres/sqlite. Fix the builds. --- tests/TestCase/ORM/QueryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestCase/ORM/QueryTest.php b/tests/TestCase/ORM/QueryTest.php index d87ade2cce7..aec8d0c623e 100644 --- a/tests/TestCase/ORM/QueryTest.php +++ b/tests/TestCase/ORM/QueryTest.php @@ -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') @@ -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) {