[2.0] Fixed hardcoded database name.
This commit is contained in:
parent
0b09e50148
commit
acec85a412
@ -190,7 +190,7 @@ class MySqlPlatform extends AbstractPlatform
|
||||
$sql = "SELECT column_name, REFERENCED_TABLE_NAME, REFERENCED_COLUMN_NAME FROM information_schema.key_column_usage WHERE table_name = '" . $table . "'";
|
||||
|
||||
if ( ! is_null($database)) {
|
||||
$sql .= " AND table_schema = 'doctrine_tests'";
|
||||
$sql .= " AND table_schema = '$database'";
|
||||
}
|
||||
|
||||
$sql .= " AND REFERENCED_COLUMN_NAME is not NULL";
|
||||
|
@ -221,7 +221,6 @@ abstract class AbstractSchemaManager
|
||||
$database = $this->_conn->getDatabase();
|
||||
}
|
||||
$sql = $this->_platform->getListTableForeignKeysSql($table, $database);
|
||||
|
||||
$tableForeignKeys = $this->_conn->fetchAll($sql);
|
||||
|
||||
return $this->_getPortableTableForeignKeysList($tableForeignKeys);
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* This software consists of voluntary contributions made by many individuals
|
||||
* and is licensed under the LGPL. For more information, see
|
||||
* <http://www.phpdoctrine.org>.
|
||||
* <http://www.doctrine-project.org>.
|
||||
*/
|
||||
|
||||
namespace Doctrine\DBAL\Schema;
|
||||
|
Loading…
Reference in New Issue
Block a user