Details
Description
Hi,
customer is getting the following error when he comments the DECLARE CONTINUE, while it works if the DECLARE is uncommented:
'Illegal parameter data types row and bigint for operation '+' '
|
The following procedure was created by the customer to test the ITERATE clause but it's identical to the one used in prod
delimiter //
|
CREATE DEFINER='root'@'%' PROCEDURE 'forIterateBug'() |
MODIFIES SQL DATA
|
BEGIN
|
DECLARE 'loopDone' TINYINT DEFAULT FALSE; |
|
FOR '_unused' IN (SELECT "") DO |
'innerLoop': LOOP |
IF 'loopDone' THEN |
LEAVE 'innerLoop'; |
END IF; |
|
SET 'loopDone' = TRUE; |
BEGIN |
#DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN END; |
ITERATE 'innerLoop'; |
END; |
END LOOP; |
END FOR; |
END |
//
|
Attachments
Issue Links
- is caused by
-
MDEV-10580 sql_mode=ORACLE: FOR loop statement
- Closed
-
MDEV-10581 sql_mode=ORACLE: Explicit cursor FOR LOOP
- Closed
-
MDEV-12098 sql_mode=ORACLE: Implicit cursor FOR loop
- Closed
-
MDEV-12314 sql_mode=ORACLE: Implicit cursor FOR LOOP for cursors with parameters
- Closed
-
MDEV-14415 Add Oracle-style FOR loop to sql_mode=DEFAULT
- Closed