From: Brad Jorsch Date: Wed, 21 Sep 2016 15:43:15 +0000 (-0400) Subject: Add table prefix in new MySQL tableExists() X-Git-Tag: 1.31.0-rc.0~5422 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=29d7ab8eeb218a5b0bab5f6492a3e01beec7b4dc;p=lhc%2Fweb%2Fwiklou.git Add table prefix in new MySQL tableExists() Bug: T146289 Change-Id: If73907f69471a6a91e1db7131a57439f950c5d8c --- 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;