1
0
mirror of synced 2025-01-30 03:51:43 +03:00

[2.0] DDC-214 - Changed MysqlPlatform::geTListTableForeignKeySql() slightly to be performant again, thanks Eric Durand-Tremblay for the patch!

This commit is contained in:
beberlei 2010-02-09 18:48:09 +00:00
parent 4adc289596
commit bf32775953

View File

@ -208,7 +208,7 @@ class MySqlPlatform extends AbstractPlatform
"FROM information_schema.key_column_usage k /*!50116 ".
"INNER JOIN information_schema.referential_constraints c ON k.`CONSTRAINT_NAME` = c.constraint_name AND ".
" c.constraint_name = k.constraint_name AND ".
" c.table_name = k.table_name */ WHERE k.table_name = '$table'";
" c.table_name = '$table' */ WHERE k.table_name = '$table'";
if ( ! is_null($database)) {
$sql .= " AND table_schema = '$database'";