mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
A cleanup for MDEV-10914 ROW data type for stored routine variables
Addressing Monty's review suggestions
This commit is contained in:
@ -187,6 +187,7 @@ rec t1%ROWTYPE;
|
||||
BEGIN
|
||||
rec.a:=100;
|
||||
rec.b:=200;
|
||||
SELECT rec=ROW(100,200) AS true1, ROW(100,200)=rec AS true2;
|
||||
INSERT INTO t1 VALUES (rec.a,rec.b);
|
||||
INSERT INTO t1 VALUES (10, rec=ROW(100,200));
|
||||
INSERT INTO t1 VALUES (10, ROW(100,200)=rec);
|
||||
@ -207,6 +208,8 @@ INSERT INTO t1 SELECT 12, 21 FROM DUAL WHERE ROW(100,200)=rec;
|
||||
END;
|
||||
$$
|
||||
CALL p1();
|
||||
true1 true2
|
||||
1 1
|
||||
SELECT * FROM t1;
|
||||
a b
|
||||
100 200
|
||||
@ -261,6 +264,7 @@ rec t1%ROWTYPE;
|
||||
BEGIN
|
||||
rec.a:=100;
|
||||
rec.b:=200;
|
||||
SELECT rec=ROW(100,200) AS true1, ROW(100,200)=rec AS true2;
|
||||
INSERT INTO t1 VALUES (rec.a,rec.b);
|
||||
INSERT INTO t1 VALUES (10, rec=ROW(100,200));
|
||||
INSERT INTO t1 VALUES (10, ROW(100,200)=rec);
|
||||
|
Reference in New Issue
Block a user