summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_update.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 5e62200f847..314f67c79c5 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -1529,8 +1529,9 @@ int multi_update::do_updates(bool from_send_error)
uint field_num= 0;
do
{
- if((local_error= tbl->file->rnd_pos(tbl->record[0],
- tmp_table->field[field_num]->ptr)))
+ if((local_error=
+ tbl->file->rnd_pos(tbl->record[0],
+ (byte *) tmp_table->field[field_num]->ptr)))
goto err;
field_num++;
} while((tbl= check_opt_it++));