Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The following test case breaks the server.
The test is borrowed from comments to the task MDEV-36114
CREATE TABLE t (a INT); |
|
--delimiter $
|
CREATE PROCEDURE p() |
BEGIN |
DECLARE cur CURSOR FOR SELECT * FROM t; |
BEGIN |
DECLARE rec ROW(a INT,b INT) DEFAULT ROW(0,0); |
DECLARE rec2 ROW TYPE OF cur DEFAULT rec; |
END; |
END
|
$
|
|
--delimiter ;
|
--ERROR ER_OPERAND_COLUMNS
|
CALL p();
|
CREATE OR REPLACE TABLE t (a INT); |
CALL p();
|
|