1
0
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:
Alexander Barkov
2018-11-13 18:02:08 +04:00
parent 573c4db57a
commit 2a0b6de41b
12 changed files with 169 additions and 59 deletions

View File

@ -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