diff options
author | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2005-10-21 13:14:54 +0500 |
---|---|---|
committer | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2005-10-21 13:14:54 +0500 |
commit | 4c872f749bc6d437c9fc12bcf0798911c1092315 (patch) | |
tree | 96dd6125088a46fb48f7c9fb3eff8d6b3bac3a7c /mysql-test/t/information_schema.test | |
parent | ad731d3888ff0ef87313d41c365a30fdf18cee68 (diff) | |
download | mariadb-git-4c872f749bc6d437c9fc12bcf0798911c1092315.tar.gz |
fix for bug#14089 FROM list subquery always fails when
information_schema is current database
skip the check of I_S tables if table is derived table
mysql-test/r/information_schema.result:
fix for bug#14089 FROM list subquery always fails when
information_schema is current database
test case
mysql-test/t/information_schema.test:
fix for bug#14089 FROM list subquery always fails when
information_schema is current database
test case
Diffstat (limited to 'mysql-test/t/information_schema.test')
-rw-r--r-- | mysql-test/t/information_schema.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/information_schema.test b/mysql-test/t/information_schema.test index f351d315680..9fb57fc187b 100644 --- a/mysql-test/t/information_schema.test +++ b/mysql-test/t/information_schema.test @@ -715,3 +715,15 @@ select ROUTINE_NAME from routines; grant all on information_schema.* to 'user1'@'localhost'; --error 1044 grant select on information_schema.* to 'user1'@'localhost'; + +# +# Bug#14089 FROM list subquery always fails when information_schema is current database +# +use test; +create table t1(id int); +insert into t1(id) values (1); +select 1 from (select 1 from test.t1) a; +use information_schema; +select 1 from (select 1 from test.t1) a; +use test; +drop table t1; |