mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-17253 Oracle compatibility: The REVERSE key word for FOR loop behaves incorrectly
This commit is contained in:
@ -86,7 +86,7 @@ CREATE FUNCTION f1 (a INT, b INT) RETURNS INT
|
||||
BEGIN
|
||||
DECLARE total INT DEFAULT 0;
|
||||
fori:
|
||||
FOR i IN REVERSE a..1
|
||||
FOR i IN REVERSE 1..a
|
||||
DO
|
||||
SET total= total + i;
|
||||
IF i = b THEN
|
||||
|
Reference in New Issue
Block a user