MaxSem has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/361610 )

Change subject: Unbreak tableExists() with prefix on MySQL
......................................................................

Unbreak tableExists() with prefix on MySQL

I7806090eaa647959fd34de8bc606eeb952161529 added the prefix for the
second time, in addition to the tableName() call above, resulting
in failing CentrlAuth tests, like https://gerrit.wikimedia.org/r/#/c/361579/

Change-Id: I8c399d6406c3b897481983f84b35fc9385b7ef5a
---
M includes/libs/rdbms/database/DatabaseMysqlBase.php
1 file changed, 0 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/10/361610/1

diff --git a/includes/libs/rdbms/database/DatabaseMysqlBase.php 
b/includes/libs/rdbms/database/DatabaseMysqlBase.php
index e237ef4..30c33a7 100644
--- a/includes/libs/rdbms/database/DatabaseMysqlBase.php
+++ b/includes/libs/rdbms/database/DatabaseMysqlBase.php
@@ -536,8 +536,6 @@
                // shared tables prefixed with their database, which do not 
work in SHOW TABLES statements
                list( $database, $schema, $prefix, $table ) = 
$this->qualifiedTableComponents( $table );
 
-               $table = $prefix . $table;
-
                // We can't use buildLike() here, because it specifies an 
escape character
                // other than the backslash, which is the only one supported by 
SHOW TABLES
                $encLike = $this->escapeLikeInternal( $table, '\\' );

-- 
To view, visit https://gerrit.wikimedia.org/r/361610
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8c399d6406c3b897481983f84b35fc9385b7ef5a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: MaxSem <maxsem.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to