diff options
author | Konstantin Osipov <kostja@sun.com> | 2009-12-09 12:29:36 +0300 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2009-12-09 12:29:36 +0300 |
commit | c03174458a46f382926abfcd669e8edd521dd59c (patch) | |
tree | 64ad912da12c58380a8d13f8789d0c8d59f5c6b8 /mysql-test/r/truncate.result | |
parent | cb4e624f95d3227ad63d42c77a42182532b64456 (diff) | |
download | mariadb-git-c03174458a46f382926abfcd669e8edd521dd59c.tar.gz |
----------------------------------------------------------
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".
Diffstat (limited to 'mysql-test/r/truncate.result')
-rw-r--r-- | mysql-test/r/truncate.result | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/truncate.result b/mysql-test/r/truncate.result index b194f9b7dc6..8ce2ad9be21 100644 --- a/mysql-test/r/truncate.result +++ b/mysql-test/r/truncate.result @@ -60,3 +60,17 @@ truncate table v1; ERROR 42S02: Table 'test.v1' doesn't exist drop view v1; drop table t1; +# +# Bug#46452 Crash in MDL, HANDLER OPEN + TRUNCATE TABLE +# +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 AS SELECT 1 AS f1; +HANDLER t1 OPEN; +# Here comes the crash. +TRUNCATE t1; +# Currently TRUNCATE, just like other DDL, implicitly closes +# open HANDLER table. +HANDLER t1 READ FIRST; +ERROR 42S02: Unknown table 't1' in HANDLER +DROP TABLE t1; +# End of 6.0 tests |