diff --git a/cake/libs/model/datasources/dbo/dbo_mysql.php b/cake/libs/model/datasources/dbo/dbo_mysql.php index 2cc215b51c8..d3b415dbf20 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysql.php +++ b/cake/libs/model/datasources/dbo/dbo_mysql.php @@ -424,7 +424,7 @@ function insertMulti($table, $fields, $values) { function listDetailedSources($name = null) { $condition = ''; if (is_string($name)) { - $condition = ' WHERE Name = ' . $this->value($name); + $condition = ' LIKE ' . $this->value($name); } $result = $this->query('SHOW TABLE STATUS FROM ' . $this->name($this->config['database']) . $condition . ';'); if (!$result) {