Fix the tableExists method of MysqlBase
authormainframe98 <k.s.werf@hotmail.com>
Mon, 19 Jun 2017 17:20:43 +0000 (19:20 +0200)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 22 Jun 2017 21:12:47 +0000 (21:12 +0000)
commitb1c34a25dffd983df5f443c905f1655fba72252b
treebb4fbcde6676ae26db212ed2585677a1efd2f6eb
parent94d7792b9c4213ca9bdd753bfcba15806aa26cd7
Fix the tableExists method of MysqlBase

The table name generated by Database::tableName() does not work in
MysqlBase's tableExist method, as the syntax of SHOW TABLES does not
function like other foreign db queries. It instead should use FROM
$database rather than the database name in front of the table name.

Bug: T168207
Change-Id: I7806090eaa647959fd34de8bc606eeb952161529
includes/libs/rdbms/database/DatabaseMysqlBase.php