From 29d7ab8eeb218a5b0bab5f6492a3e01beec7b4dc Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Wed, 21 Sep 2016 11:43:15 -0400 Subject: [PATCH] Add table prefix in new MySQL tableExists() Bug: T146289 Change-Id: If73907f69471a6a91e1db7131a57439f950c5d8c --- includes/libs/rdbms/database/DatabaseMysqlBase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/libs/rdbms/database/DatabaseMysqlBase.php b/includes/libs/rdbms/database/DatabaseMysqlBase.php index 7abfb171f7..39cf5bcefd 100644 --- a/includes/libs/rdbms/database/DatabaseMysqlBase.php +++ b/includes/libs/rdbms/database/DatabaseMysqlBase.php @@ -519,6 +519,7 @@ abstract class DatabaseMysqlBase extends DatabaseBase { } function tableExists( $table, $fname = __METHOD__ ) { + $table = $this->tableName( $table, 'raw' ); $encLike = $this->buildLike( $table ); return $this->query( "SHOW TABLES $encLike", $fname )->numRows() > 0; -- 2.20.1