Commit 6a46d0cd authored by pem@mysql.comhem.se's avatar pem@mysql.comhem.se

Added test case for BUG#6129: Stored procedure won't display @@sql_mode value.

parent 32221d9b
......@@ -2850,4 +2850,16 @@ begin
end|
call avg ()|
drop procedure avg|
drop procedure if exists bug6129|
set @@sql_mode = 'traditional'|
create procedure bug6129(mode text)
select @@sql_mode = mode|
call bug6129(@@sql_mode)|
@@sql_mode = mode
1
set @@sql_mode = ''|
call bug6129(@@sql_mode)|
@@sql_mode = mode
0
drop procedure bug6129|
drop table t1,t2;
......@@ -3495,6 +3495,25 @@ call avg ()|
drop procedure avg|
#
# BUG#6129: Stored procedure won't display @@sql_mode value
#
--disable_warnings
drop procedure if exists bug6129|
--enable_warnings
set @@sql_mode = 'traditional'|
create procedure bug6129(mode text)
select @@sql_mode = mode|
# 1
call bug6129(@@sql_mode)|
set @@sql_mode = ''|
# 0
call bug6129(@@sql_mode)|
drop procedure bug6129|
#
# BUG#NNNN: New bug synopsis
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment