bug #1410078, error exporting query ending with semicolon
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2006-01-20 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* export.php: bug #1410078, error exporting query ending with semicolon
|
||||
|
||||
2006-01-19 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* main.php: already defined constant
|
||||
* libraries/display_create_table.lib.php: bug #1376314, I remove
|
||||
|
@@ -492,6 +492,11 @@ if ($export_type == 'server') {
|
||||
}
|
||||
|
||||
if (!empty($sql_query)) {
|
||||
// only preg_replace if needed
|
||||
if (!empty($add_query)) {
|
||||
// remove trailing semicolon before adding a LIMIT
|
||||
$sql_query = preg_replace('%;\s*$%', '', $sql_query);
|
||||
}
|
||||
$local_query = $sql_query . $add_query;
|
||||
PMA_DBI_select_db($db);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user