Index: trunk/phase3/maintenance/renameDbPrefix.php |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | $count = 0; |
67 | 67 | |
68 | 68 | $dbw = wfGetDB( DB_MASTER ); |
69 | | - $res = $dbw->query( "SHOW TABLES LIKE '" . $dbw->escapeLike( $old ) . "%'" ); |
| 69 | + $res = $dbw->query( "SHOW TABLES " . $dbw->buildLike( $old, $dbw->anyString() ) ); |
70 | 70 | foreach ( $res as $row ) { |
71 | 71 | // XXX: odd syntax. MySQL outputs an oddly cased "Tables of X" |
72 | 72 | // sort of message. Best not to try $row->x stuff... |