1--source include/not_embedded.inc
2
3--echo #
4--echo # MDEV-23365: Assertion `!is_set() || (m_status == DA_OK_BULK &&
5--echo # is_bulk_op())' failed upon killed TRUNCATE
6--echo #
7
8CREATE TABLE t1 (a INT) ENGINE=MyISAM;
9LOCK TABLE t1 READ;
10
11--connect (con1,localhost,root,,test)
12SET SESSION max_session_mem_used= 45500;
13--send
14  LOCK TABLE t1 WRITE;
15
16--connection default
17SELECT * FROM t1;
18UNLOCK TABLES;
19
20--connection con1
21--error 0,ER_OPTION_PREVENTS_STATEMENT
22--reap
23# This may work or fail as different servers uses different amount of
24# memory and the statement may work or not. What is important is that we
25# don't get a crash here!
26--error 0,ER_OPTION_PREVENTS_STATEMENT
27TRUNCATE TABLE t1;
28
29--disconnect con1
30--connection default
31DROP TABLE t1;
32
33--echo #
34--echo # End of 10.2 tests
35--echo #
36