diff options
author | Eugene Kosov <claprix@yandex.ru> | 2017-09-01 12:41:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-01 12:41:46 +0300 |
commit | c2a70c8050125f219b1942a800aa4c134cc8520d (patch) | |
tree | f9594b577caaf97e3e359aa1585293057a87155b /sql/sql_rename.cc | |
parent | a6aaa4fefeaa515f0d13b426d1d3cb807a56bf59 (diff) | |
download | mariadb-git-c2a70c8050125f219b1942a800aa4c134cc8520d.tar.gz |
SQL, IB: option to drop historical rows on ALTER [closes #249]
Diffstat (limited to 'sql/sql_rename.cc')
-rw-r--r-- | sql/sql_rename.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_rename.cc b/sql/sql_rename.cc index 9b80ef78c63..631c7664994 100644 --- a/sql/sql_rename.cc +++ b/sql/sql_rename.cc @@ -300,7 +300,7 @@ do_rename(THD *thd, TABLE_LIST *ren_table, char *new_db, char *new_table_name, (void) rename_table_in_stat_tables(thd, &db_name, &table_name, &new_db_name, &new_table); VTMD_rename vtmd(*ren_table); - if (thd->variables.vers_ddl_survival) + if (thd->variables.vers_alter_history == VERS_ALTER_HISTORY_SURVIVE) { rc= vtmd.try_rename(thd, new_db_name, new_table); if (rc) @@ -313,7 +313,7 @@ do_rename(THD *thd, TABLE_LIST *ren_table, char *new_db, char *new_table_name, new_alias); if (rc) { - if (thd->variables.vers_ddl_survival) + if (thd->variables.vers_alter_history == VERS_ALTER_HISTORY_SURVIVE) vtmd.revert_rename(thd, new_db_name); revert_table_name: /* |