New line before values (RFE #1435919).

This commit is contained in:
Michal Čihař
2006-02-21 17:37:35 +00:00
parent 6c877664af
commit 3ffb7e775e
2 changed files with 7 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2006-02-21 Michal Čihař <michal@cihar.com> 2006-02-21 Michal Čihař <michal@cihar.com>
* scripts/setup.php: Various bug fixes (bug #1435700, bug #1435806, * scripts/setup.php: Various bug fixes (bug #1435700, bug #1435806,
undefined indexes). undefined indexes).
* libraries/export/sql.php: New line before values (RFE #1435919).
2006-02-21 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2006-02-21 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/common.lib.php PMA_getUvaCondition(): * libraries/common.lib.php PMA_getUvaCondition():

View File

@@ -561,7 +561,12 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
$replace = array('\0', '\n', '\r', '\Z'); $replace = array('\0', '\n', '\r', '\Z');
$current_row = 0; $current_row = 0;
$query_size = 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)) { while ($row = PMA_DBI_fetch_row($result)) {
$current_row++; $current_row++;