1
0
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:
Konstantin Osipov
2009-12-09 12:29:36 +03:00
parent cb4e624f95
commit c03174458a
2 changed files with 37 additions and 0 deletions

View File

@ -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