bug #3307616 [edit] Inline edit updates multiple duplicate rows

This commit is contained in:
Marc Delisle
2011-06-05 06:13:11 -04:00
parent 60089624dd
commit 86d3b7e58c
2 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
- bug #3311170 [sync] Missing helper icons in Synchronize - bug #3311170 [sync] Missing helper icons in Synchronize
- patch #3304473 [setup] Redefine a lable that was wrong - patch #3304473 [setup] Redefine a lable that was wrong
- bug #3304544 [parser] master is not a reserved word - bug #3304544 [parser] master is not a reserved word
- bug #3307616 [edit] Inline edit updates multiple duplicate rows
3.4.2.0 (not yet released) 3.4.2.0 (not yet released)
- bug #3301249 [interface] Iconic table operations does not remove inline edit label - bug #3301249 [interface] Iconic table operations does not remove inline edit label

View File

@@ -947,6 +947,9 @@ $(document).ready(function() {
new_clause = new_clause.substring(0, new_clause.length-5); new_clause = new_clause.substring(0, new_clause.length-5);
new_clause = PMA_urlencode(new_clause); new_clause = PMA_urlencode(new_clause);
sql_query += ' WHERE ' + PMA_urldecode(where_clause); sql_query += ' WHERE ' + PMA_urldecode(where_clause);
// Avoid updating more than one row in case there is no primary key
// (happened only for duplicate rows)
sql_query += ' LIMIT 1';
/** /**
* @var rel_fields_list String, url encoded representation of {@link relations_fields} * @var rel_fields_list String, url encoded representation of {@link relations_fields}
*/ */