Fixing problem in listSources when using '-' in database name

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5070 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
dho 2007-05-13 09:13:11 +00:00
parent 8fb9acc981
commit 2cac3f7c1d

View file

@ -142,7 +142,7 @@ class DboMysql extends DboSource {
if ($cache != null) {
return $cache;
}
$result = $this->_execute('SHOW TABLES FROM ' . $this->config['database'] . ';');
$result = $this->_execute('SHOW TABLES FROM ' . $this->name($this->config['database']) . ';');
if (!$result) {
return array();