Added fname parameter to the query() call
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 Oct 2010 08:05:26 +0000 (08:05 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 3 Oct 2010 08:05:26 +0000 (08:05 +0000)
includes/db/Database.php

index 450d04b..e249ccb 100644 (file)
@@ -1232,7 +1232,7 @@ abstract class DatabaseBase implements DatabaseType {
        function tableExists( $table ) {
                $table = $this->tableName( $table );
                $old = $this->ignoreErrors( true );
-               $res = $this->query( "SELECT 1 FROM $table LIMIT 1" );
+               $res = $this->query( "SELECT 1 FROM $table LIMIT 1", __METHOD__ );
                $this->ignoreErrors( $old );
 
                return (bool)$res;