mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
9854fb6fa7
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.
34 lines
826 B
Text
34 lines
826 B
Text
--source include/have_innodb.inc
|
|
##
|
|
# Bug #56228: dropping tables from within an active statement crashes server
|
|
#
|
|
DROP TABLE IF EXISTS t1_56228;
|
|
DROP TABLE IF EXISTS t2_56228;
|
|
DROP FUNCTION IF EXISTS bug56228;
|
|
|
|
CREATE TEMPORARY TABLE t1_56228(
|
|
c1 iNT AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB;
|
|
CREATE TEMPORARY TABLE t2_56228(
|
|
c1 iNT AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB;
|
|
|
|
DELIMITER //;
|
|
|
|
CREATE FUNCTION bug56228() RETURNS INT DETERMINISTIC
|
|
BEGIN
|
|
INSERT INTO t1_56228 VALUES(NULL);
|
|
INSERT INTO t2_56228 VALUES(NULL);
|
|
INSERT INTO t1_56228 VALUES(NULL);
|
|
INSERT INTO t2_56228 VALUES(NULL);
|
|
DROP TEMPORARY TABLE t1_56228;
|
|
RETURN 42;
|
|
END //
|
|
|
|
DELIMITER ;//
|
|
|
|
--disable_ps_protocol
|
|
SELECT bug56228();
|
|
--enable_ps2_protocol
|
|
|
|
DROP FUNCTION bug56228;
|
|
DROP TEMPORARY TABLE t2_56228;
|
|
DROP TEMPORARY TABLE IF EXISTS t1_56228;
|