diff options
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc index 9b4ee324aa3..cffc98d2e35 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -268,6 +268,11 @@ LEX_CUSTRING build_frm_image(THD *thd, const char *table, extra2_size+= 1 + 1 + 2 * sizeof(uint16); } + if (create_info->vtmd()) + { + extra2_size+= 1 + 1 + 1; + } + bool has_extra2_field_flags_= has_extra2_field_flags(create_fields); if (has_extra2_field_flags_) { @@ -340,6 +345,13 @@ LEX_CUSTRING build_frm_image(THD *thd, const char *table, pos+= sizeof(uint16); } + if (create_info->vtmd()) + { + *pos++= EXTRA2_VTMD; + *pos++= 1; + *pos++= 1; + } + if (has_extra2_field_flags_) { *pos++= EXTRA2_FIELD_FLAGS; |