mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge branch '10.6' into 10.7
This commit is contained in:
17
sql/table.cc
17
sql/table.cc
@@ -1110,6 +1110,18 @@ static void mysql57_calculate_null_position(TABLE_SHARE *share,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Item_func_hash *TABLE_SHARE::make_long_hash_func(THD *thd,
|
||||
MEM_ROOT *mem_root,
|
||||
List<Item> *field_list)
|
||||
const
|
||||
{
|
||||
if (old_long_hash_function())
|
||||
return new (mem_root) Item_func_hash_mariadb_100403(thd, *field_list);
|
||||
return new (mem_root) Item_func_hash(thd, *field_list);
|
||||
}
|
||||
|
||||
|
||||
/** Parse TABLE_SHARE::vcol_defs
|
||||
|
||||
unpack_vcol_info_from_frm
|
||||
@@ -1315,7 +1327,10 @@ bool parse_vcol_defs(THD *thd, MEM_ROOT *mem_root, TABLE *table,
|
||||
list_item= new (mem_root) Item_field(thd, keypart->field);
|
||||
field_list->push_back(list_item, mem_root);
|
||||
}
|
||||
Item_func_hash *hash_item= new(mem_root)Item_func_hash(thd, *field_list);
|
||||
|
||||
Item_func_hash *hash_item= table->s->make_long_hash_func(thd, mem_root,
|
||||
field_list);
|
||||
|
||||
Virtual_column_info *v= new (mem_root) Virtual_column_info();
|
||||
field->vcol_info= v;
|
||||
field->vcol_info->expr= hash_item;
|
||||
|
Reference in New Issue
Block a user