mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
@ -16173,7 +16173,12 @@ Field *create_tmp_field_from_field(THD *thd, Field *org_field,
|
||||
item->result_field= new_field;
|
||||
else
|
||||
new_field->field_name= name;
|
||||
new_field->flags|= (org_field->flags & NO_DEFAULT_VALUE_FLAG);
|
||||
new_field->flags|= (org_field->flags & (
|
||||
NO_DEFAULT_VALUE_FLAG |
|
||||
HIDDEN_FLAG |
|
||||
VERS_SYS_START_FLAG |
|
||||
VERS_SYS_END_FLAG |
|
||||
VERS_OPTIMIZED_UPDATE_FLAG));
|
||||
if (org_field->maybe_null() || (item && item->maybe_null))
|
||||
new_field->flags&= ~NOT_NULL_FLAG; // Because of outer join
|
||||
if (org_field->type() == MYSQL_TYPE_VAR_STRING ||
|
||||
|
Reference in New Issue
Block a user