Skip to content

Commit

Permalink
Patching dbo_mysql listDetailedSources. This fixes the broken test in…
Browse files Browse the repository at this point in the history
… dbo_mysql and solves ticket: 483-cakeshell-show-table-status-errors

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
Nick Baker authored and markstory committed Apr 2, 2010
1 parent d92202c commit 3627f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/datasources/dbo/dbo_mysql.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 3627f3b

Please sign in to comment.