1 schema.inc | public DatabaseSchema_mysql::findTables($table_expression) |
Find all tables that are like the specified base table name.
Parameters
string $table_expression: An SQL expression, for example "simpletest%" (without the quotes). BEWARE: this is not prefixed, the caller should take care of that.
Return value
array: An array with both the keys and values containing the matching tables.
Overrides DatabaseSchema::findTables
File
- core/
includes/ database/ mysql/ schema.inc, line 601 - Database schema code for MySQL database servers.
Class
- DatabaseSchema_mysql
- Class to create and manipulate MySQL tables.
Code
public function findTables($table_expression) {
// Back-ticks need to be removed when selecting from the information_schema
// table. These may be added if using DatabaseConnection::prefixTables() on
// a table name.
$table_expression = str_replace('`', '', $table_expression);
return parent::findTables($table_expression);
}