dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add table prefix in new MySQL tableExists()
[lhc/web/wiklou.git]
/
includes
/
libs
/
rdbms
/
database
/
DatabaseMysqlBase.php
diff --git
a/includes/libs/rdbms/database/DatabaseMysqlBase.php
b/includes/libs/rdbms/database/DatabaseMysqlBase.php
index
7abfb17
..
39cf5bc
100644
(file)
--- 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;