The 4th Database::select() parameter is the function name.
authorPlatonides <platonides@gmail.com>
Thu, 31 May 2012 22:13:36 +0000 (00:13 +0200)
committerPlatonides <platonides@gmail.com>
Thu, 31 May 2012 22:13:36 +0000 (00:13 +0200)
The ORDER BY should be at $options.
This was throwing errors in PHP 5.4 due to the array being
converted to a string down at Database.php:862

Fixes 50ee1d2

Change-Id: Ifb0fc70144242f25fc916fb8d380ed3e2d334fb9

tests/phpunit/MediaWikiTestCase.php

index 8c6a411..3729796 100644 (file)
@@ -366,7 +366,7 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase {
 
                $db = wfGetDB( DB_SLAVE );
 
-               $res = $db->select( $table, $fields, $condition, array( 'ORDER BY' => $fields ) );
+               $res = $db->select( $table, $fields, $condition, wfGetCaller(), array( 'ORDER BY' => $fields ) );
                $this->assertNotEmpty( $res, "query failed: " . $db->lastError() );
 
                $i = 0;