mariadb/mysql-test/suite/sql_sequence/binlog.test
Monty 36ae8846ca Fixed sequences based on comments from Peter Gulutzan and Andrii Nikitin
- Changed names of SEQUENCE table columns to be more close to ANSI
- Fixed error message for SHOW SEQUENCE non_existing_sequence
- Allow syntax CACHE +1
- Fixed ALTER TABLE for TEMPORARY sequences.
2017-06-03 16:08:23 +03:00

27 lines
702 B
Text

--source include/have_udf.inc
--source include/have_log_bin.inc
--source include/binlog_start_pos.inc
#
# Testing binary logging of sequences
#
--disable_query_log
reset master; # get rid of previous tests binlog
--enable_query_log
create or replace sequence s1 cache 3;
select next value for s1, minimum_value from s1 where maximum_value> 1;
select next value for s1, minimum_value from s1 where maximum_value> 2;
select next value for s1, minimum_value from s1 where maximum_value> 3;
select next value for s1, minimum_value from s1 where maximum_value> 4;
#
# Alter sequence
#
alter sequence s1 maxvalue 1000;
drop sequence s1;
--let $binlog_file = LAST
source include/show_binlog_events.inc;