user INSERT IGNORE instead of REPLACE

This commit is contained in:
Michal Čihař
2003-04-30 08:32:36 +00:00
parent 3698cbd4ae
commit d983065d29
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-04-30 Michal Cihar <nijel@users.sourceforge.net>
* tbl_move_copy.php3: Better fix for #729416 (use INSERT IGNORE).
2003-04-29 Michal Cihar <nijel@users.sourceforge.net>
* server_privileges.php3: No need to escape wild characters here.

View File

@@ -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) . '\')';