diff options
author | unknown <pem@mysql.com> | 2006-02-01 12:31:48 +0100 |
---|---|---|
committer | unknown <pem@mysql.com> | 2006-02-01 12:31:48 +0100 |
commit | 94d4b0017b9201569568e3a2e07d71383cb8c541 (patch) | |
tree | 173b3d3f83c28f8050176a8da6e68d08f27e1c2c /mysql-test/t | |
parent | 86733db80b223c39b0860397425b0751b258205f (diff) | |
parent | fd61a0c08dc9398c8ca902b437b068c7a8b97934 (diff) | |
download | mariadb-git-94d4b0017b9201569568e3a2e07d71383cb8c541.tar.gz |
Merge mysql.com:/extern/mysql/bk/mysql-5.0
into mysql.com:/extern/mysql/work/cantrepeat/mysql-5.0
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/sp-error.test | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/mysql-test/t/sp-error.test b/mysql-test/t/sp-error.test index 25944144d21..e1839b4b98f 100644 --- a/mysql-test/t/sp-error.test +++ b/mysql-test/t/sp-error.test @@ -1644,6 +1644,66 @@ drop procedure ` bug15658`; # +# BUG#14270: Stored procedures: crash if load index +# +--disable_warnings +drop function if exists bug14270; +drop table if exists t1; +--enable_warnings + +create table t1 (s1 int primary key); + +delimiter |; +--error ER_SP_NO_RETSET +create function bug14270() returns int +begin + load index into cache t1; + return 1; +end| + +--error ER_SP_NO_RETSET +create function bug14270() returns int +begin + cache index t1 key (`primary`) in keycache1; + return 1; +end| +delimiter ;| + +drop table t1; + + +# +# BUG#15091: Sp Returns Unknown error in order clause....and +# there is no order by clause +# +--disable_warnings +drop procedure if exists bug15091; +--enable_warnings + +delimiter |; +create procedure bug15091() +begin + declare selectstr varchar(6000) default ' '; + declare conditionstr varchar(5000) default ''; + + set selectstr = concat(selectstr, + ' and ', + c.operatorid, + 'in (',conditionstr, ')'); +end| +delimiter ;| + +# The error message used to be: +# ERROR 1109 (42S02): Unknown table 'c' in order clause +# but is now rephrased to something less misleading: +# ERROR 1109 (42S02): Unknown table 'c' in field list +--error ER_UNKNOWN_TABLE +call bug15091(); + +drop procedure bug15091; + + +# # BUG#NNNN: New bug synopsis # #--disable_warnings |