Separate extended inserts by , and not by ; (bug #768351).
This commit is contained in:
@@ -10,6 +10,8 @@ $Source$
|
|||||||
in password/username (bug #747020).
|
in password/username (bug #747020).
|
||||||
* server_privileges.php3: Fixed escaping when backslash in
|
* server_privileges.php3: Fixed escaping when backslash in
|
||||||
password/username.
|
password/username.
|
||||||
|
* libraries/export/sql.php3: Separate extended inserts by , and not by ;
|
||||||
|
(bug #768351).
|
||||||
|
|
||||||
2003-07-09 Garvin Hicking <me@supergarv.de>
|
2003-07-09 Garvin Hicking <me@supergarv.de>
|
||||||
* Documentation.html, config.inc.php3, libraries/common.lib.php3,
|
* Documentation.html, config.inc.php3, libraries/common.lib.php3,
|
||||||
|
@@ -407,9 +407,6 @@ function PMA_getTableContentFast($db, $table, $crlf, $error_url, $sql_query)
|
|||||||
global $rows_cnt;
|
global $rows_cnt;
|
||||||
global $current_row;
|
global $current_row;
|
||||||
|
|
||||||
$eol_dlm = (isset($GLOBALS['extended_ins']) && ($GLOBALS['current_row'] < $GLOBALS['rows_cnt']))
|
|
||||||
? ','
|
|
||||||
: ';';
|
|
||||||
$buffer = '';
|
$buffer = '';
|
||||||
|
|
||||||
$result = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, '', $error_url);
|
$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);
|
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 while
|
||||||
} // end if ($result != FALSE)
|
} // end if ($result != FALSE)
|
||||||
|
Reference in New Issue
Block a user