mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge mysql.com:/usr/local/bk/mysql-5.0
into mysql.com:/home/pem/work/mysql-5.0 sql/item_cmpfunc.cc: Auto merged sql/item_func.cc: Auto merged sql/item_subselect.cc: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/sp_head.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_yacc.yy: Auto merged
This commit is contained in:
@ -646,4 +646,12 @@ drop procedure if exists bug10537|
|
||||
create procedure bug10537()
|
||||
load data local infile '/tmp/somefile' into table t1|
|
||||
ERROR 0A000: LOAD DATA is not allowed in stored procedures
|
||||
drop function if exists bug8409|
|
||||
create function bug8409()
|
||||
returns int
|
||||
begin
|
||||
flush tables;
|
||||
return 5;
|
||||
end|
|
||||
ERROR 0A000: FLUSH is not allowed in stored procedures
|
||||
drop table t1|
|
||||
|
@ -3098,4 +3098,15 @@ call bug5963_2(1)|
|
||||
call bug5963_2(1)|
|
||||
drop procedure bug5963_2|
|
||||
drop table t3|
|
||||
drop function if exists bug9559|
|
||||
create function bug9559()
|
||||
returns int
|
||||
begin
|
||||
set @y = -6/2;
|
||||
return @y;
|
||||
end|
|
||||
select bug9559()|
|
||||
bug9559()
|
||||
-3
|
||||
drop function bug9559|
|
||||
drop table t1,t2;
|
||||
|
@ -905,6 +905,21 @@ create procedure bug10537()
|
||||
load data local infile '/tmp/somefile' into table t1|
|
||||
|
||||
|
||||
#
|
||||
# BUG#8409: Stored procedure crash if function contains FLUSH
|
||||
#
|
||||
--disable_warnings
|
||||
drop function if exists bug8409|
|
||||
--enable_warnings
|
||||
--error ER_SP_BADSTATEMENT
|
||||
create function bug8409()
|
||||
returns int
|
||||
begin
|
||||
flush tables;
|
||||
return 5;
|
||||
end|
|
||||
|
||||
|
||||
#
|
||||
# BUG#NNNN: New bug synopsis
|
||||
#
|
||||
|
@ -3801,6 +3801,25 @@ call bug5963_2(1)|
|
||||
drop procedure bug5963_2|
|
||||
drop table t3|
|
||||
|
||||
#
|
||||
# BUG#9559: Functions: Numeric Operations using -ve value gives incorrect
|
||||
# results.
|
||||
#
|
||||
--disable_warnings
|
||||
drop function if exists bug9559|
|
||||
--enable_warnings
|
||||
create function bug9559()
|
||||
returns int
|
||||
begin
|
||||
set @y = -6/2;
|
||||
return @y;
|
||||
end|
|
||||
|
||||
select bug9559()|
|
||||
|
||||
drop function bug9559|
|
||||
|
||||
|
||||
#
|
||||
# BUG#NNNN: New bug synopsis
|
||||
#
|
||||
|
Reference in New Issue
Block a user