mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-31003: Second execution for ps-protocol
This patch adds for "--ps-protocol" second execution of queries "SELECT". Also in this patch it is added ability to disable/enable (--disable_ps2_protocol/--enable_ps2_protocol) second execution for "--ps-prototocol" in testcases.
This commit is contained in:
@ -8,9 +8,11 @@
|
||||
drop table if exists t1, t2;
|
||||
--enable_warnings
|
||||
|
||||
--disable_ps2_protocol
|
||||
# Backup the mysql.proc table
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
eval SELECT * FROM mysql.proc INTO OUTFILE '$MYSQLTEST_VARDIR/tmp/proc.txt';
|
||||
--enable_ps2_protocol
|
||||
|
||||
# Make sure we don't have any procedures left.
|
||||
delete from mysql.proc;
|
||||
@ -419,6 +421,7 @@ unlock tables|
|
||||
# Check that in functions we don't allow to update tables which
|
||||
# are used by statements which invoke these functions.
|
||||
#
|
||||
--disable_ps2_protocol
|
||||
--disable_warnings
|
||||
drop function if exists f1|
|
||||
--enable_warnings
|
||||
@ -442,7 +445,7 @@ select * from t1|
|
||||
# Cleanup
|
||||
delete from t1 where val= 17|
|
||||
drop function f1|
|
||||
|
||||
--enable_ps2_protocol
|
||||
|
||||
#
|
||||
# BUG#1965
|
||||
@ -2273,7 +2276,9 @@ begin
|
||||
return 1;
|
||||
end|
|
||||
delimiter ;|
|
||||
--disable_ps2_protocol
|
||||
select f2();
|
||||
--enable_ps2_protocol
|
||||
|
||||
drop function f2;
|
||||
--error ER_BAD_TABLE_ERROR
|
||||
@ -3474,6 +3479,7 @@ DROP PROCEDURE p13;
|
||||
--echo # Bug#12731619: NESTED SP HANDLERS CAN TRIGGER ASSERTION
|
||||
--echo
|
||||
|
||||
--disable_ps2_protocol
|
||||
--disable_warnings
|
||||
DROP FUNCTION IF EXISTS f1;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
@ -3523,7 +3529,7 @@ SELECT * FROM t1;
|
||||
|
||||
DROP FUNCTION f1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--enable_ps2_protocol
|
||||
|
||||
--echo
|
||||
--echo # Check that handled SQL-conditions are properly cleared from DA.
|
||||
|
Reference in New Issue
Block a user