diff --git a/ChangeLog b/ChangeLog index c1f615dd6..e6bae723e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $Source$ 2006-02-21 Michal Čihař * scripts/setup.php: Various bug fixes (bug #1435700, bug #1435806, undefined indexes). + * libraries/export/sql.php: New line before values (RFE #1435919). 2006-02-21 Sebastian Mendel * libraries/common.lib.php PMA_getUvaCondition(): diff --git a/libraries/export/sql.php b/libraries/export/sql.php index ff2ed33be..bf0f4ce38 100644 --- a/libraries/export/sql.php +++ b/libraries/export/sql.php @@ -561,7 +561,12 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) $replace = array('\0', '\n', '\r', '\Z'); $current_row = 0; $query_size = 0; - $separator = isset($GLOBALS['extended_ins']) ? ',' : ';'; + if (isset($GLOBALS['extended_ins'])) { + $separator = ','; + $schema_insert .= $crlf; + } else { + $separator = ';'; + } while ($row = PMA_DBI_fetch_row($result)) { $current_row++;