summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorkaa@polly.local <>2007-04-26 20:51:02 +0400
committerkaa@polly.local <>2007-04-26 20:51:02 +0400
commit02f2616ee3c5b57be5911f5cdd49fbd1182a5975 (patch)
treefafc3f23469fd0c6f6f4414e688cf647005ba1ee /sql/sql_update.cc
parent27418637d707fcb050b4620af94e93b64a0de496 (diff)
parent9a99aa81552178b2d7995ea41e0878dc59061c9b (diff)
downloadmariadb-git-02f2616ee3c5b57be5911f5cdd49fbd1182a5975.tar.gz
Merge polly.local:/home/kaa/src/maint/bug22364/my50-bug22364
into polly.local:/home/kaa/src/maint/mysql-5.0-maint
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc19
1 files changed, 9 insertions, 10 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 6f6c4538040..e17c71ae541 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -1354,19 +1354,18 @@ bool multi_update::send_data(List<Item> &not_used_values)
memcpy((char*) tmp_table->field[0]->ptr,
(char*) table->file->ref, table->file->ref_length);
/* Write row, ignoring duplicated updates to a row */
- if ((error= tmp_table->file->write_row(tmp_table->record[0])))
+ error= tmp_table->file->write_row(tmp_table->record[0]);
+ if (error != HA_ERR_FOUND_DUPP_KEY && error != HA_ERR_FOUND_DUPP_UNIQUE)
{
- if (error != HA_ERR_FOUND_DUPP_KEY &&
- error != HA_ERR_FOUND_DUPP_UNIQUE &&
+ if (error &&
create_myisam_from_heap(thd, tmp_table,
- tmp_table_param + offset, error, 1))
- {
- do_update=0;
- DBUG_RETURN(1); // Not a table_is_full error
- }
- }
- else
+ tmp_table_param + offset, error, 1))
+ {
+ do_update= 0;
+ DBUG_RETURN(1); // Not a table_is_full error
+ }
found++;
+ }
}
}
DBUG_RETURN(0);