diff options
author | Alexander Barkov <bar@mariadb.com> | 2018-11-13 18:02:08 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2018-11-13 18:03:14 +0400 |
commit | 2a0b6de41bfd6cbd2ab2c02381ea89bb6bb612a4 (patch) | |
tree | df942bce36e637e8f52a225a791f69d0013c4df0 /mysql-test/main/sp-for-loop.test | |
parent | 573c4db57a9b9fc5998bd2a2f1311873ca78ab9f (diff) | |
download | mariadb-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.test')
-rw-r--r-- | mysql-test/main/sp-for-loop.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/main/sp-for-loop.test b/mysql-test/main/sp-for-loop.test index 6350e9fb9d3..420ab58aaa7 100644 --- a/mysql-test/main/sp-for-loop.test +++ b/mysql-test/main/sp-for-loop.test @@ -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 |