mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merge 3.23 -> 4.0, 2003/02/06
BitKeeper/etc/ignore: auto-union BitKeeper/etc/logging_ok: auto-union mysql-test/r/func_math.result: Auto merged mysql-test/t/func_math.test: Auto merged sql/item_func.cc: Auto merged
This commit is contained in:
@ -2596,9 +2596,15 @@ store_val_in_field(Field *field,Item *item)
|
||||
bool error;
|
||||
THD *thd=current_thd;
|
||||
ha_rows cuted_fields=thd->cuted_fields;
|
||||
/*
|
||||
we should restore old value of count_cuted_fields because
|
||||
store_val_in_field can be called from mysql_insert
|
||||
with select_insert, which make count_cuted_fields= 1
|
||||
*/
|
||||
bool old_count_cuted_fields= thd->count_cuted_fields;
|
||||
thd->count_cuted_fields=1;
|
||||
error= item->save_in_field(field, 1);
|
||||
thd->count_cuted_fields=0;
|
||||
thd->count_cuted_fields= old_count_cuted_fields;
|
||||
return error || cuted_fields != thd->cuted_fields;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user