summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-05-08 02:44:55 +0300
committerMonty <monty@mariadb.org>2017-05-08 02:44:55 +0300
commit71fa413c165e644f8f1433356f95fed12579fe3e (patch)
treef319474716dc55b3174fbf29a9dc510983d040a1 /sql/sql_table.cc
parent1e04ad284c6ac0a9ce433f827bc6dbfbd6029007 (diff)
downloadmariadb-git-71fa413c165e644f8f1433356f95fed12579fe3e.tar.gz
MDEV-10139 Support for SEQUENCE objects
- SETVAL(sequence_name, next_value, is_used, round) - ALTER SEQUENCE, including RESTART WITH Other things: - Added handler::extra() option HA_EXTRA_PREPARE_FOR_ALTER_TABLE to signal ha_sequence() that it should allow write_row statments. - ALTER ONLINE TABLE now works with SEQUENCE:s
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 2ad8c2d5562..f985f6e73fc 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -9631,6 +9631,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
thd->abort_on_warning= !ignore && thd->is_strict_mode();
from->file->info(HA_STATUS_VARIABLE);
+ to->file->extra(HA_EXTRA_PREPARE_FOR_ALTER_TABLE);
to->file->ha_start_bulk_insert(from->file->stats.records,
ignore ? 0 : HA_CREATE_UNIQUE_INDEX_BY_SORT);