Commit 35d354e5 authored by Benjamin Morel's avatar Benjamin Morel

Clean up MySqlPlatform::getListTableIndexesSQL() fields

parent 8c0bf798
...@@ -154,11 +154,10 @@ class MySqlPlatform extends AbstractPlatform ...@@ -154,11 +154,10 @@ class MySqlPlatform extends AbstractPlatform
$currentDatabase = $this->quoteStringLiteral($currentDatabase); $currentDatabase = $this->quoteStringLiteral($currentDatabase);
$table = $this->quoteStringLiteral($table); $table = $this->quoteStringLiteral($table);
return 'SELECT TABLE_NAME AS `Table`, NON_UNIQUE AS Non_Unique, INDEX_NAME AS Key_name, ' . return 'SELECT NON_UNIQUE AS Non_Unique, INDEX_NAME AS Key_name, COLUMN_NAME AS Column_Name,' .
'SEQ_IN_INDEX AS Seq_in_index, COLUMN_NAME AS Column_Name, COLLATION AS Collation, ' . ' SUB_PART AS Sub_Part, INDEX_TYPE AS Index_Type' .
'CARDINALITY AS Cardinality, SUB_PART AS Sub_Part, PACKED AS Packed, ' . ' FROM information_schema.STATISTICS WHERE TABLE_NAME = ' . $table .
'NULLABLE AS `Null`, INDEX_TYPE AS Index_Type, COMMENT AS Comment ' . ' AND TABLE_SCHEMA = ' . $currentDatabase .
'FROM information_schema.STATISTICS WHERE TABLE_NAME = ' . $table . ' AND TABLE_SCHEMA = ' . $currentDatabase .
' ORDER BY SEQ_IN_INDEX ASC'; ' ORDER BY SEQ_IN_INDEX ASC';
} }
......
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