mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
----------------------------------------------------------
revno: 2617.69.33 committer: Konstantin Osipov <kostja@sun.com> branch nick: mysql-next-46452 timestamp: Wed 2009-08-19 18:39:31 +0400 message: Bug#46452 "Crash in MDL, HANDLER OPEN + TRUNCATE TABLE". Flush open HANDLER tables before TRUNCATE, which is a DDL. mysql-test/r/truncate.result: Update results for Bug#46452. mysql-test/t/truncate.test: Add a test case for Bug#46452 "Crash in MDL, HANDLER OPEN + TRUNCATE TABLE".
This commit is contained in:
@ -69,3 +69,26 @@ drop table t1;
|
||||
|
||||
# End of 5.0 tests
|
||||
|
||||
--echo #
|
||||
--echo # Bug#46452 Crash in MDL, HANDLER OPEN + TRUNCATE TABLE
|
||||
--echo #
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 AS SELECT 1 AS f1;
|
||||
|
||||
HANDLER t1 OPEN;
|
||||
--echo # Here comes the crash.
|
||||
TRUNCATE t1;
|
||||
|
||||
--echo # Currently TRUNCATE, just like other DDL, implicitly closes
|
||||
--echo # open HANDLER table.
|
||||
--error ER_UNKNOWN_TABLE
|
||||
HANDLER t1 READ FIRST;
|
||||
|
||||
# Cleanup
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # End of 6.0 tests
|
||||
|
||||
|
Reference in New Issue
Block a user