diff options
author | Konstantin Osipov <kostja@sun.com> | 2010-02-06 13:30:07 +0300 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2010-02-06 13:30:07 +0300 |
commit | 4d4eed6514ebf852030278f19e5c2aa0b3ea432c (patch) | |
tree | cc17f25809493151e807ecef4c85b742a996d371 /mysql-test | |
parent | a72f90bc43a809e6678e1343a1ee760878061be3 (diff) | |
parent | 95c2386148174b0c67b68778de0039955c73507f (diff) | |
download | mariadb-git-4d4eed6514ebf852030278f19e5c2aa0b3ea432c.tar.gz |
Merge next-4284 -> next-4284-merge
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/include/handler.inc | 20 | ||||
-rw-r--r-- | mysql-test/r/handler_innodb.result | 13 | ||||
-rw-r--r-- | mysql-test/r/handler_myisam.result | 13 |
3 files changed, 46 insertions, 0 deletions
diff --git a/mysql-test/include/handler.inc b/mysql-test/include/handler.inc index a5ab97996bb..3264521c4f5 100644 --- a/mysql-test/include/handler.inc +++ b/mysql-test/include/handler.inc @@ -1522,3 +1522,23 @@ HANDLER t2 READ FIRST; HANDLER t2 CLOSE; DROP TABLE t1, t2; + + +--echo # +--echo # Bug#50912 Assertion `ticket->m_type >= mdl_request->type' +--echo # failed on HANDLER + I_S +--echo # + +--disable_warnings +DROP TABLE IF EXISTS t1; +--enable_warnings + +CREATE TABLE t1 (id INT); +HANDLER t1 OPEN; + +# This used to trigger the assert. +SELECT table_name, table_comment FROM information_schema.tables + WHERE table_schema= 'test' AND table_name= 't1'; + +HANDLER t1 CLOSE; +DROP TABLE t1; diff --git a/mysql-test/r/handler_innodb.result b/mysql-test/r/handler_innodb.result index 90b0d0bb8fe..cc196dcf392 100644 --- a/mysql-test/r/handler_innodb.result +++ b/mysql-test/r/handler_innodb.result @@ -1476,3 +1476,16 @@ HANDLER t2 READ FIRST; i HANDLER t2 CLOSE; DROP TABLE t1, t2; +# +# Bug#50912 Assertion `ticket->m_type >= mdl_request->type' +# failed on HANDLER + I_S +# +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 (id INT); +HANDLER t1 OPEN; +SELECT table_name, table_comment FROM information_schema.tables +WHERE table_schema= 'test' AND table_name= 't1'; +table_name table_comment +t1 +HANDLER t1 CLOSE; +DROP TABLE t1; diff --git a/mysql-test/r/handler_myisam.result b/mysql-test/r/handler_myisam.result index e52d559a197..4a043bf8161 100644 --- a/mysql-test/r/handler_myisam.result +++ b/mysql-test/r/handler_myisam.result @@ -1474,6 +1474,19 @@ i HANDLER t2 CLOSE; DROP TABLE t1, t2; # +# Bug#50912 Assertion `ticket->m_type >= mdl_request->type' +# failed on HANDLER + I_S +# +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 (id INT); +HANDLER t1 OPEN; +SELECT table_name, table_comment FROM information_schema.tables +WHERE table_schema= 'test' AND table_name= 't1'; +table_name table_comment +t1 +HANDLER t1 CLOSE; +DROP TABLE t1; +# # BUG #46456: HANDLER OPEN + TRUNCATE + DROP (temporary) TABLE, crash # CREATE TABLE t1 AS SELECT 1 AS f1; |