From 3627f3b3846e79f315e1a4ee12bce23cf6729786 Mon Sep 17 00:00:00 2001 From: Nick Baker Date: Tue, 30 Mar 2010 15:30:06 -0600 Subject: [PATCH] Patching dbo_mysql listDetailedSources. This fixes the broken test in dbo_mysql and solves ticket: 483-cakeshell-show-table-status-errors Signed-off-by: Mark Story --- cake/libs/model/datasources/dbo/dbo_mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {