diff options
author | unknown <knielsen@knielsen-hq.org> | 2009-11-06 18:22:32 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2009-11-06 18:22:32 +0100 |
commit | ad368a2b54f4177daf5abd17fa7533f1626f6feb (patch) | |
tree | c762060dc3c06f7b35460ef22fecc08cf8adee55 /mysql-test/t/analyse.test | |
parent | 716c09936365c9cfeb2304ca54ffdd95c1031c6e (diff) | |
parent | a6793a48e20c2aebb1391e2f4f916cf147ff1900 (diff) | |
download | mariadb-git-ad368a2b54f4177daf5abd17fa7533f1626f6feb.tar.gz |
Merge Mysql 5.1.39 merge into MariaDB trunk
Diffstat (limited to 'mysql-test/t/analyse.test')
-rw-r--r-- | mysql-test/t/analyse.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/analyse.test b/mysql-test/t/analyse.test index efcf5f6421c..d8466df14bf 100644 --- a/mysql-test/t/analyse.test +++ b/mysql-test/t/analyse.test @@ -14,6 +14,7 @@ create table t2 select * from t1 procedure analyse(); select * from t2; drop table t1,t2; +--error ER_WRONG_USAGE EXPLAIN SELECT 1 FROM (SELECT 1) a PROCEDURE ANALYSE(); # @@ -102,4 +103,13 @@ select f2 from t1 procedure analyse(1, 1); select f3 from t1 procedure analyse(1, 1); drop table t1; +# +# Bug#46184 Crash, SELECT ... FROM derived table procedure analyze +# +CREATE TABLE t1(a INT,b INT,c INT,d INT,e INT,f INT,g INT,h INT,i INT,j INT,k INT); +INSERT INTO t1 VALUES (); +--error ER_WRONG_USAGE +SELECT * FROM (SELECT * FROM t1) d PROCEDURE ANALYSE(); +DROP TABLE t1; + --echo End of 4.1 tests |