mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operations
This commit is contained in:
@@ -440,7 +440,7 @@ drop procedure b|
|
||||
drop procedure if exists b2|
|
||||
--enable_warnings
|
||||
create procedure b2(x int)
|
||||
repeat(select 1 into outfile 'b2');
|
||||
repeat(select 1) into outfile 'b2';
|
||||
insert into test.t1 values (repeat("b2",3), x);
|
||||
set x = x-1;
|
||||
until x = 0 end repeat|
|
||||
@@ -5040,6 +5040,7 @@ drop procedure if exists bug14643_1|
|
||||
drop procedure if exists bug14643_2|
|
||||
--enable_warnings
|
||||
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
create procedure bug14643_1()
|
||||
begin
|
||||
declare continue handler for sqlexception select 'boo' as 'Handler';
|
||||
@@ -5055,6 +5056,7 @@ begin
|
||||
end;
|
||||
end|
|
||||
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
create procedure bug14643_2()
|
||||
begin
|
||||
declare continue handler for sqlexception select 'boo' as 'Handler';
|
||||
@@ -5069,11 +5071,6 @@ begin
|
||||
select undefined_var;
|
||||
end|
|
||||
|
||||
call bug14643_1()|
|
||||
call bug14643_2()|
|
||||
|
||||
drop procedure bug14643_1|
|
||||
drop procedure bug14643_2|
|
||||
|
||||
#
|
||||
# BUG#14304: auto_increment field incorrect set in SP
|
||||
@@ -5114,15 +5111,12 @@ drop table t3, t4|
|
||||
drop procedure if exists bug14376|
|
||||
--enable_warnings
|
||||
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
create procedure bug14376()
|
||||
begin
|
||||
declare x int default x;
|
||||
end|
|
||||
|
||||
# Not the error we want, but that's what we got for now...
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
call bug14376()|
|
||||
drop procedure bug14376|
|
||||
|
||||
create procedure bug14376()
|
||||
begin
|
||||
@@ -5344,6 +5338,7 @@ drop procedure if exists bug14498_4|
|
||||
drop procedure if exists bug14498_5|
|
||||
--enable_warnings
|
||||
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
create procedure bug14498_1()
|
||||
begin
|
||||
declare continue handler for sqlexception select 'error' as 'Handler';
|
||||
@@ -5356,6 +5351,7 @@ begin
|
||||
select 'done' as 'End';
|
||||
end|
|
||||
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
create procedure bug14498_2()
|
||||
begin
|
||||
declare continue handler for sqlexception select 'error' as 'Handler';
|
||||
@@ -5366,6 +5362,7 @@ begin
|
||||
select 'done' as 'End';
|
||||
end|
|
||||
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
create procedure bug14498_3()
|
||||
begin
|
||||
declare continue handler for sqlexception select 'error' as 'Handler';
|
||||
@@ -5376,6 +5373,7 @@ begin
|
||||
select 'done' as 'End';
|
||||
end|
|
||||
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
create procedure bug14498_4()
|
||||
begin
|
||||
declare continue handler for sqlexception select 'error' as 'Handler';
|
||||
@@ -5391,6 +5389,7 @@ begin
|
||||
select 'done' as 'End';
|
||||
end|
|
||||
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
create procedure bug14498_5()
|
||||
begin
|
||||
declare continue handler for sqlexception select 'error' as 'Handler';
|
||||
@@ -5406,17 +5405,6 @@ begin
|
||||
select 'done' as 'End';
|
||||
end|
|
||||
|
||||
call bug14498_1()|
|
||||
call bug14498_2()|
|
||||
call bug14498_3()|
|
||||
call bug14498_4()|
|
||||
call bug14498_5()|
|
||||
|
||||
drop procedure bug14498_1|
|
||||
drop procedure bug14498_2|
|
||||
drop procedure bug14498_3|
|
||||
drop procedure bug14498_4|
|
||||
drop procedure bug14498_5|
|
||||
|
||||
#
|
||||
# BUG#15231: Stored procedure bug with not found condition handler
|
||||
@@ -9842,6 +9830,8 @@ BEGIN
|
||||
SET name="hello";
|
||||
call p1(name);
|
||||
END|
|
||||
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
CREATE OR REPLACE PROCEDURE p3 ()
|
||||
BEGIN
|
||||
DECLARE name VARCHAR(10);
|
||||
@@ -9852,11 +9842,8 @@ END|
|
||||
DELIMITER ;|
|
||||
|
||||
call p2();
|
||||
--error ER_BAD_FIELD_ERROR
|
||||
call p3();
|
||||
drop procedure p1;
|
||||
drop procedure p2;
|
||||
drop procedure p3;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-15328: MariaDB 10.2.13 Crashes upon CALL PROCEDURE PARAM
|
||||
|
Reference in New Issue
Block a user