Separate extended inserts by , and not by ; (bug #768351).

This commit is contained in:
Michal Čihař
2003-07-09 10:33:26 +00:00
parent ca55aae520
commit e0d1c56eb2
2 changed files with 3 additions and 4 deletions

View File

@@ -10,6 +10,8 @@ $Source$
in password/username (bug #747020).
* server_privileges.php3: Fixed escaping when backslash in
password/username.
* libraries/export/sql.php3: Separate extended inserts by , and not by ;
(bug #768351).
2003-07-09 Garvin Hicking <me@supergarv.de>
* Documentation.html, config.inc.php3, libraries/common.lib.php3,

View File

@@ -407,9 +407,6 @@ function PMA_getTableContentFast($db, $table, $crlf, $error_url, $sql_query)
global $rows_cnt;
global $current_row;
$eol_dlm = (isset($GLOBALS['extended_ins']) && ($GLOBALS['current_row'] < $GLOBALS['rows_cnt']))
? ','
: ';';
$buffer = '';
$result = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, '', $error_url);
@@ -489,7 +486,7 @@ function PMA_getTableContentFast($db, $table, $crlf, $error_url, $sql_query)
}
unset($values);
if (!PMA_exportOutputHandler($insert_line . $eol_dlm . $crlf)) return FALSE;
if (!PMA_exportOutputHandler($insert_line . ((isset($GLOBALS['extended_ins']) && ($current_row < $rows_cnt)) ? ',' : ';') . $crlf)) return FALSE;
} // end while
} // end if ($result != FALSE)