summaryrefslogtreecommitdiff
path: root/mysql-test/main/sp-for-loop.result
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-11-13 18:02:08 +0400
committerAlexander Barkov <bar@mariadb.com>2018-11-13 18:03:14 +0400
commit2a0b6de41bfd6cbd2ab2c02381ea89bb6bb612a4 (patch)
treedf942bce36e637e8f52a225a791f69d0013c4df0 /mysql-test/main/sp-for-loop.result
parent573c4db57a9b9fc5998bd2a2f1311873ca78ab9f (diff)
downloadmariadb-git-2a0b6de41bfd6cbd2ab2c02381ea89bb6bb612a4.tar.gz
MDEV-17253 Oracle compatibility: The REVERSE key word for FOR loop behaves incorrectly
Diffstat (limited to 'mysql-test/main/sp-for-loop.result')
-rw-r--r--mysql-test/main/sp-for-loop.result2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/main/sp-for-loop.result b/mysql-test/main/sp-for-loop.result
index 0da09586df5..d62d6ae3612 100644
--- a/mysql-test/main/sp-for-loop.result
+++ b/mysql-test/main/sp-for-loop.result
@@ -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