mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operations
This commit is contained in:
@ -2833,6 +2833,8 @@ SELECT * FROM t1 INTO rec1;
|
||||
SELECT rec1.a, rec1.b;
|
||||
END;
|
||||
$$
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
CALL p1();
|
||||
ERROR 21000: The used SELECT statements have a different number of columns
|
||||
DROP TABLE t1;
|
||||
@ -2847,6 +2849,8 @@ SELECT * FROM t1 INTO rec1, rec1;
|
||||
SELECT rec1.a, rec1.b;
|
||||
END;
|
||||
$$
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
CALL p1();
|
||||
ERROR 21000: Operand should contain 2 column(s)
|
||||
DROP TABLE t1;
|
||||
@ -2861,6 +2865,8 @@ SELECT * FROM t1 INTO rec1;
|
||||
SELECT rec1.a, rec1.b;
|
||||
END;
|
||||
$$
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
CALL p1();
|
||||
rec1.a rec1.b
|
||||
10 b10
|
||||
@ -2876,6 +2882,8 @@ SELECT 10,'a','b' FROM t1 INTO rec1;
|
||||
SELECT rec1.a, rec1.b;
|
||||
END;
|
||||
$$
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
CALL p1();
|
||||
ERROR 21000: The used SELECT statements have a different number of columns
|
||||
DROP TABLE t1;
|
||||
@ -2890,6 +2898,8 @@ SELECT 10,'a' FROM t1 INTO rec1, rec1;
|
||||
SELECT rec1.a, rec1.b;
|
||||
END;
|
||||
$$
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
CALL p1();
|
||||
ERROR 21000: Operand should contain 2 column(s)
|
||||
DROP TABLE t1;
|
||||
@ -2904,6 +2914,8 @@ SELECT * FROM t1 INTO rec1;
|
||||
SELECT rec1.a, rec1.b;
|
||||
END;
|
||||
$$
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
CALL p1();
|
||||
rec1.a rec1.b
|
||||
10 b10
|
||||
@ -2920,6 +2932,8 @@ SELECT * FROM t1 INTO rec1;
|
||||
SELECT rec1.a, rec1.b;
|
||||
END;
|
||||
$$
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
CALL p1();
|
||||
ERROR 21000: The used SELECT statements have a different number of columns
|
||||
DROP TABLE t1;
|
||||
@ -2935,6 +2949,8 @@ SELECT * FROM t1 INTO rec1, rec1;
|
||||
SELECT rec1.a, rec1.b;
|
||||
END;
|
||||
$$
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
CALL p1();
|
||||
ERROR 21000: Operand should contain 2 column(s)
|
||||
DROP TABLE t1;
|
||||
@ -2950,6 +2966,8 @@ SELECT * FROM t1 INTO rec1;
|
||||
SELECT rec1.a, rec1.b;
|
||||
END;
|
||||
$$
|
||||
Warnings:
|
||||
Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be removed in a future release. Please use 'SELECT <select list> INTO <destination> FROM...' instead
|
||||
CALL p1();
|
||||
rec1.a rec1.b
|
||||
10 b10
|
||||
|
Reference in New Issue
Block a user