diff --git a/ChangeLog b/ChangeLog index 228bafff98..cdb229bc8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -81,6 +81,7 @@ phpMyAdmin - ChangeLog - issue #11964 Undefined index: TABLE_COMMENT in database structure page - issue #11967 Fix PHP error on loading invalid XML or ODS file - issue #11969 Missing confirmation while dropping a view in view_operations.php +- issue #11968 Fix export of index comments in SQL 4.5.4.1 (2016-01-29) - issue #11892 Error with PMA 4.4.15.3 diff --git a/libraries/plugins/export/ExportSql.php b/libraries/plugins/export/ExportSql.php index 08710064c9..4e74fa4968 100644 --- a/libraries/plugins/export/ExportSql.php +++ b/libraries/plugins/export/ExportSql.php @@ -1632,7 +1632,9 @@ class ExportSql extends ExportPlugin unset($statement->fields[$key]); } else { if (empty($GLOBALS['sql_if_not_exists'])) { - $indexes[] = $field->build($field); + $indexes[] = str_replace( + 'COMMENT=\'', 'COMMENT \'', $field::build($field) + ); unset($statement->fields[$key]); } }