mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-18712 InnoDB indexes are inconsistent with what defined in .frm for table after rebuilding table with index on blob
when auto-adding a virtual LONG_UNIQUE_HASH_FIELD, fill in a Virtual_column_info for it, so that fill_alter_inplace_info() would know we're adding a virtual field (ALTER_ADD_VIRTUAL_COLUMN).
This commit is contained in:
@@ -691,7 +691,7 @@ static bool pack_vcols(String *buf, List<Create_field> &create_fields,
|
||||
|
||||
for (uint field_nr=0; (field= it++); field_nr++)
|
||||
{
|
||||
if (field->vcol_info)
|
||||
if (field->vcol_info && field->vcol_info->expr)
|
||||
if (pack_expression(buf, field->vcol_info, field_nr,
|
||||
field->vcol_info->stored_in_db
|
||||
? VCOL_GENERATED_STORED : VCOL_GENERATED_VIRTUAL))
|
||||
|
Reference in New Issue
Block a user