summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2021-10-11 13:36:06 +0300
committerAleksey Midenkov <midenok@gmail.com>2021-10-11 13:36:06 +0300
commit911c803db19de7ffd45c39ff3614abcf19c63536 (patch)
tree5622f776d4cdafedae25a08c4b97e09cf418959d /sql/sql_table.cc
parent00affc324cd69f5e00befe195de930c4df7b2f32 (diff)
downloadmariadb-git-911c803db19de7ffd45c39ff3614abcf19c63536.tar.gz
MDEV-22660 System versioning cleanups
- Cleaned up Vers_parse_info::check_sys_fields(); - Renamed VERS_SYS_START_FLAG, VERS_SYS_END_FLAG to VERS_ROW_START, VERS_ROW_END.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 9aae74a613d..2b796403dc8 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -8209,7 +8209,7 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
def= new (thd->mem_root) Create_field(thd, field, field);
def->invisible= INVISIBLE_SYSTEM;
alter_info->flags|= ALTER_CHANGE_COLUMN;
- if (field->flags & VERS_SYS_START_FLAG)
+ if (field->flags & VERS_ROW_START)
create_info->vers_info.as_row.start= def->field_name= Vers_parse_info::default_start;
else
create_info->vers_info.as_row.end= def->field_name= Vers_parse_info::default_end;
@@ -8250,9 +8250,9 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
!vers_system_invisible)
{
StringBuffer<NAME_LEN*3> tmp;
- if (!(dropped_sys_vers_fields & VERS_SYS_START_FLAG))
+ if (!(dropped_sys_vers_fields & VERS_ROW_START))
append_drop_column(thd, &tmp, table->vers_start_field());
- if (!(dropped_sys_vers_fields & VERS_SYS_END_FLAG))
+ if (!(dropped_sys_vers_fields & VERS_ROW_END))
append_drop_column(thd, &tmp, table->vers_end_field());
my_error(ER_MISSING, MYF(0), table->s->table_name.str, tmp.c_ptr());
goto err;