listTables and listDatabases should return a 1 dimension array
This commit is contained in:
parent
3f407e5d57
commit
f4df5424f4
@ -273,8 +273,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
|
|||||||
public function listDatabases() {
|
public function listDatabases() {
|
||||||
$sql = 'SHOW DATABASES';
|
$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
|
* lists all availible database functions
|
||||||
@ -358,7 +357,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
|
|||||||
public function listTables($database = null) {
|
public function listTables($database = null) {
|
||||||
$sql = 'SHOW TABLES';
|
$sql = 'SHOW TABLES';
|
||||||
|
|
||||||
return $this->dbh->query($sql)->fetchAll(PDO::FETCH_ASSOC);
|
return $this->dbh->query($sql)->fetchAll(PDO::FETCH_COLUMN);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* lists table triggers
|
* lists table triggers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user