From d983065d29e93c3d55d152edebff9ca71fd2d632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 30 Apr 2003 08:32:36 +0000 Subject: [PATCH] user INSERT IGNORE instead of REPLACE --- ChangeLog | 3 +++ tbl_move_copy.php3 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8c11cc665..08b5fac69 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-04-30 Michal Cihar + * tbl_move_copy.php3: Better fix for #729416 (use INSERT IGNORE). + 2003-04-29 Michal Cihar * server_privileges.php3: No need to escape wild characters here. diff --git a/tbl_move_copy.php3 b/tbl_move_copy.php3 index 19fc631aa..6db573936 100644 --- a/tbl_move_copy.php3 +++ b/tbl_move_copy.php3 @@ -82,7 +82,7 @@ global $cfgRelation; } } - $new_table_query = 'REPLACE INTO ' . PMA_backquote($cfgRelation[$pma_table]) + $new_table_query = 'INSERT IGNORE INTO ' . PMA_backquote($cfgRelation[$pma_table]) . ' (' . implode(', ', $select_parts) . ', ' . implode(', ', $new_parts) . ')' . ' VALUES ' . ' (\'' . implode('\', \'', $value_parts) . '\', \'' . implode('\', \'', $new_value_parts) . '\')';