mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-17253 Oracle compatibility: The REVERSE key word for FOR loop behaves incorrectly
This commit is contained in:
@ -80,7 +80,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