mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
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:
parent
d92202c6da
commit
3627f3b384
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue