2021-09-09 09:57:39 +02:00
|
|
|
--source include/not_embedded.inc
|
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # MDEV-23365: Assertion `!is_set() || (m_status == DA_OK_BULK &&
|
|
|
|
--echo # is_bulk_op())' failed upon killed TRUNCATE
|
|
|
|
--echo #
|
|
|
|
|
|
|
|
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
|
|
|
|
LOCK TABLE t1 READ;
|
|
|
|
|
|
|
|
--connect (con1,localhost,root,,test)
|
2021-09-15 16:37:54 +02:00
|
|
|
SET SESSION max_session_mem_used= 45500;
|
2021-09-09 09:57:39 +02:00
|
|
|
--send
|
|
|
|
LOCK TABLE t1 WRITE;
|
|
|
|
|
|
|
|
--connection default
|
|
|
|
SELECT * FROM t1;
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
--connection con1
|
2021-12-15 22:29:04 +01:00
|
|
|
--error 0,ER_OPTION_PREVENTS_STATEMENT
|
2021-09-09 09:57:39 +02:00
|
|
|
--reap
|
2021-09-21 14:03:04 +02:00
|
|
|
# This may work or fail as different servers uses different amount of
|
|
|
|
# memory and the statement may work or not. What is important is that we
|
|
|
|
# don't get a crash here!
|
|
|
|
--error 0,ER_OPTION_PREVENTS_STATEMENT
|
2021-09-09 09:57:39 +02:00
|
|
|
TRUNCATE TABLE t1;
|
|
|
|
|
|
|
|
--disconnect con1
|
|
|
|
--connection default
|
|
|
|
DROP TABLE t1;
|
|
|
|
|
|
|
|
--echo #
|
|
|
|
--echo # End of 10.2 tests
|
|
|
|
--echo #
|