Commit bf327759 authored by beberlei's avatar beberlei

[2.0] DDC-214 - Changed MysqlPlatform::geTListTableForeignKeySql() slightly to...

[2.0] DDC-214 - Changed MysqlPlatform::geTListTableForeignKeySql() slightly to be performant again, thanks Eric Durand-Tremblay for the patch!
parent 4adc2895
......@@ -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'";
......
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