Skip to content
Permalink
Browse files

Table names should be quoted as well.

  • Loading branch information...
markstory committed Mar 24, 2013
1 parent e9aff21 commit 9e63eae4185dfcf54c53008a848a231d41a5ae3f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/Database/Dialect/MysqlDialectTrait.php
@@ -41,7 +41,7 @@ public function listTablesSql($config) {
* @return array An array of (sql, params) to execute.
*/
public function describeTableSql($table) {
return ["SHOW TABLES FROM `{$table}`", []];
return ["SHOW TABLES FROM " . $this->quoteIdentifier($table), []];
}
}

0 comments on commit 9e63eae

Please sign in to comment.
You can’t perform that action at this time.