summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-11-27 17:03:29 +0100
committerNikita Malyavin <nikitamalyavin@gmail.com>2023-04-18 00:29:47 +0300
commit06b55eaefbfd17d2953bc2303a8a9f753a995eb0 (patch)
treed0beadb3f09da3122313fd06baa500461a973c33 /sql/sql_yacc.yy
parente2605344343ee1dce1ea5282a61b99320ab87910 (diff)
downloadmariadb-git-06b55eaefbfd17d2953bc2303a8a9f753a995eb0.tar.gz
cleanup: remove vcol_info->stored_in_db
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_yacc.yy')
-rw-r--r--sql/sql_yacc.yy8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 2927b6ce8de..295370a6f9e 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -5871,19 +5871,19 @@ opt_generated_always:
vcol_opt_specifier:
/* empty */
{
- Lex->last_field->vcol_info->set_stored_in_db_flag(FALSE);
+ Lex->last_field->vcol_info->set_vcol_type(VCOL_GENERATED_VIRTUAL);
}
| VIRTUAL_SYM
{
- Lex->last_field->vcol_info->set_stored_in_db_flag(FALSE);
+ Lex->last_field->vcol_info->set_vcol_type(VCOL_GENERATED_VIRTUAL);
}
| PERSISTENT_SYM
{
- Lex->last_field->vcol_info->set_stored_in_db_flag(TRUE);
+ Lex->last_field->vcol_info->set_vcol_type(VCOL_GENERATED_STORED);
}
| STORED_SYM
{
- Lex->last_field->vcol_info->set_stored_in_db_flag(TRUE);
+ Lex->last_field->vcol_info->set_vcol_type(VCOL_GENERATED_STORED);
}
;