diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-11-27 17:03:29 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2023-05-02 14:25:31 +0200 |
commit | 76fd8d368d9226357d129c61834ff9ccf6cfc1fb (patch) | |
tree | 4b3d98a5ab8ede1b5154ff1bc0ee22a1152eb934 /sql/sql_table.cc | |
parent | a6f947b92c41e7bfd141ec10f257028028ede97b (diff) | |
download | mariadb-git-bb-10.11-serg.tar.gz |
cleanup: remove vcol_info->stored_in_dbbb-10.11-serg
it was redundant, duplicating vcol_type == VCOL_GENERATED_STORED.
Note that VCOL_DEFAULT is not "stored", "stored vcol" means that after
rnd_next or index_read/etc the field value is already in the record[0]
and does not need to be calculated separately
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index a510de15027..961829cafb5 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -2602,7 +2602,7 @@ static Create_field * add_hash_field(THD * thd, List<Create_field> *create_list, cf->invisible= INVISIBLE_FULL; cf->pack_flag|= FIELDFLAG_MAYBE_NULL; cf->vcol_info= new (thd->mem_root) Virtual_column_info(); - cf->vcol_info->stored_in_db= false; + cf->vcol_info->set_vcol_type(VCOL_GENERATED_VIRTUAL); uint num= 1; LEX_CSTRING field_name; field_name.str= (char *)thd->alloc(LONG_HASH_FIELD_NAME_LENGTH); |