diff options
author | unknown <serg@serg.mylan> | 2004-01-13 12:31:25 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-01-13 12:31:25 +0100 |
commit | febc79bb5d8a7cfe1f8e5eef50595f321786c467 (patch) | |
tree | 66fde442464b3be35a42583932a1fda9901670c7 /mysql-test | |
parent | f61cec71d19659759b44f42f1deccbe64a25bdbb (diff) | |
download | mariadb-git-febc79bb5d8a7cfe1f8e5eef50595f321786c467.tar.gz |
BUG#2304 - HANDLER and tables in non-current db
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/handler.result | 18 | ||||
-rw-r--r-- | mysql-test/t/handler.test | 16 |
2 files changed, 34 insertions, 0 deletions
diff --git a/mysql-test/r/handler.result b/mysql-test/r/handler.result index 5467ea6dec2..1cfc3a9de8b 100644 --- a/mysql-test/r/handler.result +++ b/mysql-test/r/handler.result @@ -173,3 +173,21 @@ Unknown column 'W' in 'field list' handler t1 read a=(a); Wrong arguments to HANDLER ... READ drop table t1; +create table t1 (a char(5)); +insert into t1 values ("Ok"); +handler t1 open as t; +handler t read first; +a +Ok +use mysql; +handler t read first; +a +Ok +handler t close; +handler test.t1 open as t; +handler t read first; +a +Ok +handler t close; +use test; +drop table t1; diff --git a/mysql-test/t/handler.test b/mysql-test/t/handler.test index 736091a52a9..936902fd9bf 100644 --- a/mysql-test/t/handler.test +++ b/mysql-test/t/handler.test @@ -107,3 +107,19 @@ handler t1 read a=(W); handler t1 read a=(a); drop table t1; +# +# BUG#2304 +# +create table t1 (a char(5)); +insert into t1 values ("Ok"); +handler t1 open as t; +handler t read first; +use mysql; +handler t read first; +handler t close; +handler test.t1 open as t; +handler t read first; +handler t close; +use test; +drop table t1; + |