mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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
unlike CREATE TABLE, CREATE SEQUENCE always causes an implicit commit, even for temporary sequences.
This commit is contained in:
@ -41,3 +41,18 @@ select nextval(s1);
|
|||||||
nextval(s1)
|
nextval(s1)
|
||||||
2
|
2
|
||||||
drop temporary sequence s1;
|
drop temporary sequence s1;
|
||||||
|
# End of 10.6 test
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
set foreign_key_checks=0,unique_checks=0;
|
||||||
|
create table t1 (c1 char,index (c1)) engine=innodb;
|
||||||
|
xa start 'a';
|
||||||
|
insert into t1 values();
|
||||||
|
set foreign_key_checks=1,unique_checks=1;
|
||||||
|
create temporary sequence f engine=innodb;
|
||||||
|
ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state
|
||||||
|
xa end 'a';
|
||||||
|
xa rollback 'a';
|
||||||
|
drop table t1;
|
||||||
|
# End of 10.11 test
|
||||||
|
@ -45,3 +45,21 @@ select nextval(s1);
|
|||||||
select nextval(s1);
|
select nextval(s1);
|
||||||
drop temporary sequence s1;
|
drop temporary sequence s1;
|
||||||
--enable_ps2_protocol
|
--enable_ps2_protocol
|
||||||
|
|
||||||
|
--echo # End of 10.6 test
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # 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
|
||||||
|
--echo #
|
||||||
|
set foreign_key_checks=0,unique_checks=0;
|
||||||
|
create table t1 (c1 char,index (c1)) engine=innodb;
|
||||||
|
xa start 'a';
|
||||||
|
insert into t1 values();
|
||||||
|
set foreign_key_checks=1,unique_checks=1;
|
||||||
|
--error ER_XAER_RMFAIL
|
||||||
|
create temporary sequence f engine=innodb;
|
||||||
|
xa end 'a';
|
||||||
|
xa rollback 'a';
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
|
--echo # End of 10.11 test
|
||||||
|
@ -441,7 +441,6 @@ bool stmt_causes_implicit_commit(THD *thd, uint mask)
|
|||||||
case SQLCOM_DROP_TABLE:
|
case SQLCOM_DROP_TABLE:
|
||||||
case SQLCOM_DROP_SEQUENCE:
|
case SQLCOM_DROP_SEQUENCE:
|
||||||
case SQLCOM_CREATE_TABLE:
|
case SQLCOM_CREATE_TABLE:
|
||||||
case SQLCOM_CREATE_SEQUENCE:
|
|
||||||
/*
|
/*
|
||||||
If CREATE TABLE of non-temporary table and the table is not part
|
If CREATE TABLE of non-temporary table and the table is not part
|
||||||
if a BEGIN GTID ... COMMIT group, do a implicit commit.
|
if a BEGIN GTID ... COMMIT group, do a implicit commit.
|
||||||
|
Reference in New Issue
Block a user