mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix a bad BitKeeper dependency structure for the "funcs_1" suite:
The files below "mysql-test/suite/funcs_1" in version 5.1 did not depend on the equivalent ones in 5.0, probably because they had been checked in independent of each other in both versions. Step 1: Foreach file F in the suite that has a "deleted" counterpart D, use bk rm $F bk mv $D $F to get those files into the 5.1 suite that (for BK) depend on 5.0.
This commit is contained in:
36
mysql-test/suite/funcs_1/r/innodb_storedproc_02.result
Normal file → Executable file
36
mysql-test/suite/funcs_1/r/innodb_storedproc_02.result
Normal file → Executable file
@ -166,7 +166,7 @@ declare y integer default 1;
|
||||
set @x = x;
|
||||
set @y = y;
|
||||
set @z = 234;
|
||||
SELECT f1, f2 into @x, @y from t2 where f1='a`' and f2='a`' limit 1;
|
||||
SELECT f1, f2 into @x, @y from t2 limit 1;
|
||||
SELECT @x, @y, @z, invar;
|
||||
BEGIN
|
||||
set @x = 2;
|
||||
@ -209,7 +209,7 @@ BEGIN
|
||||
declare x integer; declare y integer;
|
||||
set @x=x;
|
||||
set @y=y;
|
||||
SELECT f4, f3 into @x, @y from t2 where f4=-5000 and f3='1000-01-01' limit 1;
|
||||
SELECT f4, f3 into @x, @y from t2 limit 1;
|
||||
SELECT @x, @y;
|
||||
END//
|
||||
CALL sp1();
|
||||
@ -544,9 +544,6 @@ exit handler 2
|
||||
exit handler 2
|
||||
exit handler 1
|
||||
exit handler 1
|
||||
Warnings:
|
||||
Note 1051 Unknown table 'tqq'
|
||||
Note 1051 Unknown table 'tqq'
|
||||
create table res_t1(w char unique, x char);
|
||||
insert into res_t1 values ('a', 'b');
|
||||
CREATE PROCEDURE h1 ()
|
||||
@ -1087,8 +1084,7 @@ declare f2_value char(20);
|
||||
declare f5_value char(20);
|
||||
declare f4_value integer;
|
||||
declare f6_value integer;
|
||||
declare cur1 cursor for SELECT f1, f2, f4, f5, f6 from t2
|
||||
where f4 >=-5000 order by f4 limit 3;
|
||||
declare cur1 cursor for SELECT f1, f2, f4, f5, f6 from t2 limit 3;
|
||||
open cur1;
|
||||
while proceed do
|
||||
SELECT count AS 'loop';
|
||||
@ -1171,7 +1167,7 @@ of a compound statement ends.
|
||||
DROP TABLE IF EXISTS temp1;
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
create table temp1( f0 char(20), f1 char(20), f2 char(20), f3 int, f4 char(20) );
|
||||
SELECT f1, f2, f4, f5 from t2 order by f4;
|
||||
SELECT f1, f2, f4, f5 from t2;
|
||||
f1 f2 f4 f5
|
||||
a` a` -5000 a`
|
||||
aaa aaa -4999 aaa
|
||||
@ -1191,21 +1187,21 @@ declare newf1 char(20);
|
||||
declare newf2 char(20);
|
||||
declare newf5 char(20);
|
||||
declare newf4 integer;
|
||||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 where f4 >= -5000 order by f4 limit 5;
|
||||
declare cur2 cursor for SELECT f1, f2, f4, f5 from t2 where f4 >= -5000 order by f4 limit 5;
|
||||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 5;
|
||||
declare cur2 cursor for SELECT f1, f2, f4, f5 from t2 limit 5;
|
||||
open cur1;
|
||||
open cur2;
|
||||
BEGIN
|
||||
declare continue handler for sqlstate '02000' set count=1;
|
||||
declare continue handler for sqlstate '02000' set count = 1;
|
||||
fetch cur1 into newf1, newf2, newf4, newf5;
|
||||
SELECT '-1-', count, newf1, newf2, newf4, newf5;
|
||||
insert into temp1 values ('cur1_out', newf1, newf2, newf4, newf5);
|
||||
set count= 4;
|
||||
set count = 4;
|
||||
BEGIN
|
||||
while count> 0 do
|
||||
while count > 0 do
|
||||
fetch cur1 into newf1, newf2, newf4, newf5;
|
||||
SELECT '-2-', count, newf1, newf2, newf4, newf5;
|
||||
set count = count- 1;
|
||||
set count = count - 1;
|
||||
END while;
|
||||
SELECT '-3-', count, newf1, newf2, newf4, newf4;
|
||||
END;
|
||||
@ -1274,10 +1270,8 @@ declare i_newf11 char(20);
|
||||
declare i_newf12 char(20);
|
||||
declare i_newf13 date;
|
||||
declare i_newf14 integer;
|
||||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2
|
||||
where f4>=-5000 order by f4 limit 4;
|
||||
declare cur2 cursor for SELECT f1, f2, f3, f4 from t2
|
||||
where f4>=-5000 order by f4 limit 3;
|
||||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2 limit 4;
|
||||
declare cur2 cursor for SELECT f1, f2, f3, f4 from t2 limit 3;
|
||||
declare continue handler for sqlstate '02000' set proceed=0;
|
||||
open cur1;
|
||||
open cur2;
|
||||
@ -1308,10 +1302,8 @@ DECLARE o_newf11 CHAR(20);
|
||||
DECLARE o_newf12 CHAR(20);
|
||||
DECLARE o_newf13 DATE;
|
||||
DECLARE o_newf14 INTEGER;
|
||||
DECLARE cur1 CURSOR FOR SELECT f1, f2, f3, f4 FROM t2
|
||||
WHERE f4>=-5000 ORDER BY f4 LIMIT 5;
|
||||
DECLARE cur2 CURSOR FOR SELECT f1, f2, f3, f4 FROM t2
|
||||
WHERE f4>=-5000 ORDER BY f4 LIMIT 5;
|
||||
DECLARE cur1 CURSOR FOR SELECT f1, f2, f3, f4 FROM t2 LIMIT 5;
|
||||
DECLARE cur2 CURSOR FOR SELECT f1, f2, f3, f4 FROM t2 LIMIT 5;
|
||||
DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET proceed=0;
|
||||
OPEN cur1;
|
||||
OPEN cur2;
|
||||
|
Reference in New Issue
Block a user