summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sql_sequence/binlog.test
blob: 432edabf5837ba1684f11bdbb89c5c9efca4b107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--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, min_value from s1 where max_value> 1;
select next value for s1, min_value from s1 where max_value> 2;
select next value for s1, min_value from s1 where max_value> 3;
select next value for s1, min_value from s1 where max_value> 4;
drop sequence s1;

--let $binlog_file = LAST
source include/show_binlog_events.inc;