Debian Codegraph @

mysql-test/suite/sql_sequence/temporary.result

raw
1 #
2 # Create
3 #
4 create temporary sequence s1 engine=innodb;
5 alter table s1 engine myisam;
6 select nextval(s1);
7 nextval(s1)
8 1
9 select * from s1;
10 next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
11 1001 1 9223372036854775806 1 1 1000 0 0
12 drop temporary sequence s1;
13 #
14 # MDEV-14762 Server crashes in MDL_ticket::has_stronger_or_equal_type
15 # upon inserting into temporary sequence
16 #
17 CREATE TEMPORARY SEQUENCE s1 ENGINE=InnoDB;
18 INSERT INTO s1 VALUES (1, 1, 1000, 1, 1, 1, 1, 0);
19 DROP TEMPORARY SEQUENCE s1;
20 #
21 # MDEV-13007 ALTER .. ENGINE on temporary sequence may go wrong
22 #
23 create temporary sequence s1 engine=aria;
24 alter table s1 engine myisam;
25 select nextval(s1);
26 nextval(s1)
27 1
28 drop temporary sequence s1;
29 create temporary sequence s1 engine=innodb;
30 alter table s1 engine myisam;
31 select nextval(s1);
32 nextval(s1)
33 1
34 drop temporary sequence s1;
35 create temporary sequence s1;
36 alter table s1 engine innodb;
37 select nextval(s1);
38 nextval(s1)
39 1
40 select nextval(s1);
41 nextval(s1)
42 2
43 drop temporary sequence s1;
44 # End of 10.6 test
45 #
46 # MDEV-31298 Assertion `!check_foreigns' failed in trx_mod_table_time_t* trx_t::check_bulk_buffer(dict_table_t*), Assertion `table->skip_alter_undo || !check_unique_secondary' failed in trx_t::check_bulk_buffer
47 #
48 set foreign_key_checks=0,unique_checks=0;
49 create table t1 (c1 char,index (c1)) engine=innodb;
50 xa start 'a';
51 insert into t1 values();
52 set foreign_key_checks=1,unique_checks=1;
53 create temporary sequence f engine=innodb;
54 ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
55 xa end 'a';
56 xa rollback 'a';
57 drop table t1;
58 # End of 10.11 test