diff --git a/ChangeLog b/ChangeLog index 231abe535..0cb615948 100755 --- a/ChangeLog +++ b/ChangeLog @@ -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 * Documentation.html, config.inc.php3, libraries/common.lib.php3, diff --git a/libraries/export/sql.php3 b/libraries/export/sql.php3 index 2f97e8d91..29cc4feb2 100644 --- a/libraries/export/sql.php3 +++ b/libraries/export/sql.php3 @@ -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)