diff options
author | acurtis@xiphis.org <> | 2005-04-21 13:34:39 +0100 |
---|---|---|
committer | acurtis@xiphis.org <> | 2005-04-21 13:34:39 +0100 |
commit | c5d94db336f74dc120c0b90bfba324bc53077813 (patch) | |
tree | f0a079db183be6001e94610cc2739ebd61a810b2 /mysql-test/t/sp.test | |
parent | 564eb3dc98336663b6d414a347fe90dc6d2cb042 (diff) | |
parent | f67507588fc58b86a05ea494f669e2909b08bc72 (diff) | |
download | mariadb-git-c5d94db336f74dc120c0b90bfba324bc53077813.tar.gz |
Merge
Diffstat (limited to 'mysql-test/t/sp.test')
-rw-r--r-- | mysql-test/t/sp.test | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/mysql-test/t/sp.test b/mysql-test/t/sp.test index d5298645f76..1974cf2eab5 100644 --- a/mysql-test/t/sp.test +++ b/mysql-test/t/sp.test @@ -3645,6 +3645,62 @@ drop procedure bug6898| # +# BUG#9102: Stored proccedures: function which returns blob causes crash +# +--disable_warnings +drop function if exists bug9102| +--enable_warnings +create function bug9102() returns blob return 'a'| +select bug9102()| +drop function bug9102| + + +# +# BUG#7648: Stored procedure crash when invoking a function that returns a bit +# +--disable_warnings +drop function if exists bug7648| +--enable_warnings +create function bug7648() returns bit(8) return 'a'| +select bug7648()| +drop function bug7648| + + +# +# BUG#9775: crash if create function that returns enum or set +# +--disable_warnings +drop function if exists bug9775| +--enable_warnings +create function bug9775(v1 char(1)) returns enum('a','b') return v1| +select bug9775('a'),bug9775('b'),bug9775('c')| +drop function bug9775| +create function bug9775(v1 int) returns enum('a','b') return v1| +select bug9775(1),bug9775(2),bug9775(3)| +drop function bug9775| + +create function bug9775(v1 char(1)) returns set('a','b') return v1| +select bug9775('a'),bug9775('b'),bug9775('a,b'),bug9775('c')| +drop function bug9775| +create function bug9775(v1 int) returns set('a','b') return v1| +select bug9775(1),bug9775(2),bug9775(3),bug9775(4)| +drop function bug9775| + + +# +# BUG#8861: If Return is a YEAR data type, value is not shown in year format +# +--disable_warnings +drop function if exists bug8861| +--enable_warnings +create function bug8861(v1 int) returns year return v1| +select bug8861(05)| +set @x = bug8861(05)| +select @x| +drop function bug8861| + + +# # BUG#NNNN: New bug synopsis # #--disable_warnings |