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 <mark@mark-story.com>
This commit is contained in:
Nick Baker 2010-03-30 15:30:06 -06:00 committed by Mark Story
parent d92202c6da
commit 3627f3b384

View file

@ -424,7 +424,7 @@ class DboMysqlBase extends DboSource {
function listDetailedSources($name = null) { function listDetailedSources($name = null) {
$condition = ''; $condition = '';
if (is_string($name)) { 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 . ';'); $result = $this->query('SHOW TABLE STATUS FROM ' . $this->name($this->config['database']) . $condition . ';');
if (!$result) { if (!$result) {