mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Re-record failing SEQUENCE tests
This commit is contained in:
@ -38,7 +38,7 @@ insert into t1 select * from s1;
|
|||||||
insert into s1 values(-100,-1000,9223372036854775806,1,1,1000,0,0);
|
insert into s1 values(-100,-1000,9223372036854775806,1,1,1000,0,0);
|
||||||
insert into t1 select * from s1;
|
insert into t1 select * from s1;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
next_value min_value max_value start increment cache cycle round
|
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
|
||||||
1 1 9223372036854775806 1 1 10 0 0
|
1 1 9223372036854775806 1 1 10 0 0
|
||||||
21 1 9223372036854775806 1 1 10 0 0
|
21 1 9223372036854775806 1 1 10 0 0
|
||||||
21 1 9223372036854775806 1 1 10 0 0
|
21 1 9223372036854775806 1 1 10 0 0
|
||||||
@ -47,7 +47,7 @@ next_value min_value max_value start increment cache cycle round
|
|||||||
-100 -1000 9223372036854775806 1 1 1000 0 0
|
-100 -1000 9223372036854775806 1 1 1000 0 0
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
next_value min_value max_value start increment cache cycle round
|
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
|
||||||
1 1 9223372036854775806 1 1 10 0 0
|
1 1 9223372036854775806 1 1 10 0 0
|
||||||
21 1 9223372036854775806 1 1 10 0 0
|
21 1 9223372036854775806 1 1 10 0 0
|
||||||
21 1 9223372036854775806 1 1 10 0 0
|
21 1 9223372036854775806 1 1 10 0 0
|
||||||
@ -56,7 +56,7 @@ next_value min_value max_value start increment cache cycle round
|
|||||||
-100 -1000 9223372036854775806 1 1 1000 0 0
|
-100 -1000 9223372036854775806 1 1 1000 0 0
|
||||||
connection slave2;
|
connection slave2;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
next_value min_value max_value start increment cache cycle round
|
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
|
||||||
1 1 9223372036854775806 1 1 10 0 0
|
1 1 9223372036854775806 1 1 10 0 0
|
||||||
21 1 9223372036854775806 1 1 10 0 0
|
21 1 9223372036854775806 1 1 10 0 0
|
||||||
21 1 9223372036854775806 1 1 10 0 0
|
21 1 9223372036854775806 1 1 10 0 0
|
||||||
@ -69,14 +69,14 @@ master-bin.000001 # Gtid # # GTID #-#-#
|
|||||||
master-bin.000001 # Query # # use `test`; CREATE SEQUENCE s1 cache=10
|
master-bin.000001 # Query # # use `test`; CREATE SEQUENCE s1 cache=10
|
||||||
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
master-bin.000001 # Gtid # # BEGIN GTID #-#-#
|
||||||
master-bin.000001 # Query # # use `test`; CREATE TABLE `t1` (
|
master-bin.000001 # Query # # use `test`; CREATE TABLE `t1` (
|
||||||
`next_value` bigint(21) NOT NULL COMMENT 'next not cached value',
|
`next_not_cached_value` bigint(21) NOT NULL,
|
||||||
`min_value` bigint(21) NOT NULL COMMENT 'min value',
|
`minimum_value` bigint(21) NOT NULL,
|
||||||
`max_value` bigint(21) NOT NULL COMMENT 'max value',
|
`maximum_value` bigint(21) NOT NULL,
|
||||||
`start` bigint(21) NOT NULL COMMENT 'start value',
|
`start_value` bigint(21) NOT NULL COMMENT 'start value when sequences is created or value if RESTART is used',
|
||||||
`increment` bigint(21) NOT NULL COMMENT 'increment value',
|
`increment` bigint(21) NOT NULL COMMENT 'increment value',
|
||||||
`cache` bigint(21) NOT NULL COMMENT 'cache size',
|
`cache_size` bigint(21) unsigned NOT NULL,
|
||||||
`cycle` tinyint(1) unsigned NOT NULL COMMENT 'cycle state',
|
`cycle_option` tinyint(1) unsigned NOT NULL COMMENT '0 if no cycles are allowed, 1 if the sequence should begin a new cycle when maximum_value is passed',
|
||||||
`round` bigint(21) NOT NULL COMMENT 'How many cycles has been done'
|
`cycle_count` bigint(21) NOT NULL COMMENT 'How many cycles have been done'
|
||||||
) PAGE_CHECKSUM=1
|
) PAGE_CHECKSUM=1
|
||||||
master-bin.000001 # Annotate_rows # # create table t1 select * from s1
|
master-bin.000001 # Annotate_rows # # create table t1 select * from s1
|
||||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||||
|
@ -148,3 +148,17 @@ next_not_cached_value minimum_value maximum_value start_value increment cache_si
|
|||||||
4001 1 9223372036854775806 1 1 1000 0 0
|
4001 1 9223372036854775806 1 1 1000 0 0
|
||||||
commit;
|
commit;
|
||||||
drop sequence s1;
|
drop sequence s1;
|
||||||
|
#
|
||||||
|
# Flush tables with read lock
|
||||||
|
#
|
||||||
|
create sequence s1;
|
||||||
|
select next value for s1;
|
||||||
|
next value for s1
|
||||||
|
1
|
||||||
|
flush tables with read lock;
|
||||||
|
create sequence s2;
|
||||||
|
ERROR HY000: Can't execute the query because you have a conflicting read lock
|
||||||
|
select next value for s1;
|
||||||
|
ERROR HY000: Can't execute the query because you have a conflicting read lock
|
||||||
|
unlock tables;
|
||||||
|
drop sequence s1;
|
||||||
|
Reference in New Issue
Block a user