diff options
author | Monty <monty@mariadb.org> | 2017-05-08 02:44:55 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2017-05-08 02:44:55 +0300 |
commit | 71fa413c165e644f8f1433356f95fed12579fe3e (patch) | |
tree | f319474716dc55b3174fbf29a9dc510983d040a1 /sql/ha_sequence.h | |
parent | 1e04ad284c6ac0a9ce433f827bc6dbfbd6029007 (diff) | |
download | mariadb-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/ha_sequence.h')
-rw-r--r-- | sql/ha_sequence.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/ha_sequence.h b/sql/ha_sequence.h index 3aacd62c5cb..f753d038114 100644 --- a/sql/ha_sequence.h +++ b/sql/ha_sequence.h @@ -84,6 +84,10 @@ public: int info(uint); LEX_CSTRING *engine_name() { return hton_name(file->ht); } int external_lock(THD *thd, int lock_type); + int extra(enum ha_extra_function operation); + /* For ALTER ONLINE TABLE */ + bool check_if_incompatible_data(HA_CREATE_INFO *create_info, + uint table_changes); /* Functions that are directly mapped to the underlying handler */ int rnd_init(bool scan) |