Browse Source

Remove function that doesn't exist in postgres/sqlite.

Fix the builds.
mark_story 11 years ago
parent
commit
d3e760f49d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/ORM/QueryTest.php

+ 2 - 2
tests/TestCase/ORM/QueryTest.php

@@ -2033,7 +2033,7 @@ class QueryTest extends TestCase {
 		$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 @@ class QueryTest extends TestCase {
 		$table->belongsTo('Authors');
 
 		$result = $table->find()
-			->select(['myField' => '(SELECT RAND())'])
+			->select(['myField' => '(SELECT 2 + 2)'])
 			->autoFields(true)
 			->hydrate(false)
 			->contain(['Authors' => function($q) {