summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <mikael@dator5.(none)>2006-07-01 00:01:37 -0400
committerunknown <mikael@dator5.(none)>2006-07-01 00:01:37 -0400
commitc92b025b3a98f02b26678cfd14dba2d169f980c8 (patch)
treea9af6bfab0bb1fa096598be7a003fe272b362d5c /sql/sql_update.cc
parentbf723783a786c70f63f87fd6b2c5b0146f6a7183 (diff)
downloadmariadb-git-c92b025b3a98f02b26678cfd14dba2d169f980c8.tar.gz
BUG#17138: Crashes in stored procedure
Last round of review fixes BUILD/compile-pentium-gcov: No change sql/ha_ndbcluster.h: Last round of review changes sql/ha_partition.h: Last round of review changes sql/handler.h: Last round of review changes sql/item_sum.cc: Last round of review changes sql/sql_acl.cc: Last round of review changes sql/sql_insert.cc: Last round of review changes sql/sql_select.cc: Last round of review changes sql/sql_table.cc: Last round of review changes sql/sql_union.cc: Last round of review changes sql/sql_update.cc: Last round of review changes
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 414c2b353b3..2164da01c4c 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -542,13 +542,13 @@ int mysql_update(THD *thd,
}
}
else if (!ignore ||
- table->file->is_fatal_error(error, HA_CHECK_DUPP_KEY))
+ table->file->is_fatal_error(error, HA_CHECK_DUP_KEY))
{
/*
If (ignore && error is ignorable) we don't have to
do anything; otherwise...
*/
- if (table->file->is_fatal_error(error, HA_CHECK_DUPP_KEY))
+ if (table->file->is_fatal_error(error, HA_CHECK_DUP_KEY))
thd->fatal_error(); /* Other handler errors are fatal */
table->file->print_error(error,MYF(0));
error= 1;
@@ -1424,13 +1424,13 @@ bool multi_update::send_data(List<Item> &not_used_values)
{
updated--;
if (!ignore ||
- table->file->is_fatal_error(error, HA_CHECK_DUPP_KEY))
+ table->file->is_fatal_error(error, HA_CHECK_DUP_KEY))
{
/*
If (ignore && error == is ignorable) we don't have to
do anything; otherwise...
*/
- if (table->file->is_fatal_error(error, HA_CHECK_DUPP_KEY))
+ if (table->file->is_fatal_error(error, HA_CHECK_DUP_KEY))
thd->fatal_error(); /* Other handler errors are fatal */
table->file->print_error(error,MYF(0));
DBUG_RETURN(1);
@@ -1459,7 +1459,7 @@ bool multi_update::send_data(List<Item> &not_used_values)
/* Write row, ignoring duplicated updates to a row */
if ((error= tmp_table->file->ha_write_row(tmp_table->record[0])))
{
- if (tmp_table->file->is_fatal_error(error, HA_CHECK_DUPP) &&
+ if (tmp_table->file->is_fatal_error(error, HA_CHECK_DUP) &&
create_myisam_from_heap(thd, tmp_table,
tmp_table_param + offset, error, 1))
{
@@ -1583,7 +1583,7 @@ int multi_update::do_updates(bool from_send_error)
table->record[0])))
{
if (!ignore ||
- table->file->is_fatal_error(local_error, HA_CHECK_DUPP_KEY))
+ table->file->is_fatal_error(local_error, HA_CHECK_DUP_KEY))
goto err;
}
updated++;