DB-718 test case for broken error handling in tokudb_fractal_tree_info info schema plugin

This commit is contained in:
Rich Prohaska
2014-09-03 08:13:49 -04:00
parent b7feee730c
commit 507da246c8
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,9 @@
set default_storage_engine='tokudb';
drop table if exists t;
create table t (id int primary key);
begin;
insert into t values (1),(2);
select * from information_schema.tokudb_fractal_tree_info;
ERROR HY000: Unknown error -30994
commit;
drop table t;

View File

@ -0,0 +1,13 @@
# test DB-718, a crash caused by broken error handling in tokudb's fractal_tree_info information schema
source include/have_tokudb.inc;
set default_storage_engine='tokudb';
disable_warnings;
drop table if exists t;
enable_warnings;
create table t (id int primary key);
begin;
insert into t values (1),(2);
--error 34542
select * from information_schema.tokudb_fractal_tree_info;
commit;
drop table t;