mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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
This commit is contained in:
@ -182,9 +182,10 @@ drop table t1,s1;
|
||||
CREATE OR REPLACE SEQUENCE s1 MINVALUE 1 MAXVALUE 9999999999 INCREMENT BY 1 START WITH 3984356 nocache CYCLE engine='innodb';
|
||||
select * from s1;
|
||||
select next value for s1;
|
||||
explain extended select next value for s1;
|
||||
explain extended select previous value for s1;
|
||||
drop sequence s1;
|
||||
|
||||
|
||||
#
|
||||
# Some error testing
|
||||
#
|
||||
|
Reference in New Issue
Block a user