mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
sql_select.cc:
After merge fix
This commit is contained in:
parent
516b8f0aca
commit
d7e831ac62
1 changed files with 2 additions and 2 deletions
|
@ -8754,10 +8754,10 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
|
|||
/* Get the value from default_values */
|
||||
diff= (my_ptrdiff_t) (orig_field->table->s->default_values-
|
||||
orig_field->table->record[0]);
|
||||
orig_field->move_field(diff); // Points now at default_values
|
||||
orig_field->move_field_offset(diff); // Points now at default_values
|
||||
bool is_null= orig_field->is_real_null();
|
||||
char *from= orig_field->ptr;
|
||||
orig_field->move_field(-diff); // Back to record[0]
|
||||
orig_field->move_field_offset(-diff); // Back to record[0]
|
||||
if (is_null)
|
||||
field->set_null();
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue