From 3ffb7e775e5aaf6beb465aff46bcf35836b0cfe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 21 Feb 2006 17:37:35 +0000 Subject: [PATCH] New line before values (RFE #1435919). --- ChangeLog | 1 + libraries/export/sql.php | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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++;