Commit f4df5424 authored by runa's avatar runa

listTables and listDatabases should return a 1 dimension array

parent 3f407e5d
......@@ -273,8 +273,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
public function listDatabases() {
$sql = 'SHOW DATABASES';
return $this->dbh->query($sql)->fetchAll(PDO::FETCH_ASSOC);
return $this->dbh->query($sql)->fetchAll(PDO::FETCH_COLUMN);
}
/**
* lists all availible database functions
......@@ -358,7 +357,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
public function listTables($database = null) {
$sql = 'SHOW TABLES';
return $this->dbh->query($sql)->fetchAll(PDO::FETCH_ASSOC);
return $this->dbh->query($sql)->fetchAll(PDO::FETCH_COLUMN);
}
/**
* lists table triggers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment