mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-31933: Make working view-protocol + ps-protocol (running two protocols together)
Fix for v. 10.5
This commit is contained in:
@ -258,6 +258,8 @@ where t1.col2 in
|
||||
|
||||
# the having column is resolved in the FROM clause of the outer query -
|
||||
# works in ANSI
|
||||
#Enable after fix MDEV-31937
|
||||
--disable_ps2_protocol
|
||||
select t1.col1 from t1
|
||||
where t1.col2 in
|
||||
(select t2.col2 from t2
|
||||
@ -284,6 +286,7 @@ where t1.col2 in
|
||||
group by t2.col1, t2.col2 having col_t1 <= 10)
|
||||
group by col_t1
|
||||
having col_t1 <= 20;
|
||||
--enable_ps2_protocol
|
||||
|
||||
#
|
||||
# nested HAVING clauses
|
||||
@ -412,11 +415,14 @@ INSERT INTO PROJ VALUES ('P4','SDP','Design',20000,'Deale');
|
||||
INSERT INTO PROJ VALUES ('P5','IRM','Test',10000,'Vienna');
|
||||
INSERT INTO PROJ VALUES ('P6','PAYR','Design',50000,'Deale');
|
||||
|
||||
#Enable after fix MDEV-31937
|
||||
--disable_ps2_protocol
|
||||
SELECT EMPNUM, GRADE*1000
|
||||
FROM HU.STAFF WHERE GRADE * 1000 >
|
||||
ANY (SELECT SUM(BUDGET) FROM HU.PROJ
|
||||
GROUP BY CITY, PTYPE
|
||||
HAVING HU.PROJ.CITY = HU.STAFF.CITY);
|
||||
--enable_ps2_protocol
|
||||
|
||||
DROP SCHEMA HU;
|
||||
USE test;
|
||||
@ -956,6 +962,8 @@ DROP TABLE t;
|
||||
--echo # MDEV-29731 Crash when HAVING in a correlated subquery references
|
||||
--echo # columns in the outer query
|
||||
--echo #
|
||||
#Enable after fix MDEV-29731
|
||||
--disable_view_protocol
|
||||
CREATE TABLE t (a INT, b INT);
|
||||
SELECT 1 FROM t
|
||||
WHERE b = (SELECT 1 FROM t GROUP BY a HAVING b = a+1);
|
||||
@ -998,6 +1006,7 @@ UPDATE t SET a = ''
|
||||
WHERE (0, a) IN ((0,-1),(+1,0))
|
||||
ORDER BY 1+AVG(a) OVER (ORDER BY a)) ORDER BY a;
|
||||
DROP TABLE t;
|
||||
--enable_view_protocol
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.4 tests
|
||||
|
Reference in New Issue
Block a user