diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-08-24 12:30:27 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-04-05 15:02:47 +0400 |
commit | 442ea81ed37768d50bdaed70380d8c2ad53f6949 (patch) | |
tree | cbb949bf70f32e1bc83c422d75cc26be277d7fba /sql/structs.h | |
parent | 2ea63492f7e755031f058d530d680704160f32d1 (diff) | |
download | mariadb-git-442ea81ed37768d50bdaed70380d8c2ad53f6949.tar.gz |
MDEV-10411 Providing compatibility for basic PL/SQL constructs
Fixed that the ITERATE statement inside a FOR LOOP statement did not
increment the index variable before jumping to the beginning
of the loop, which caused the loop to repeat endlessly.
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/structs.h b/sql/structs.h index cf1b2ff4e94..10dc1f40fa9 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -675,6 +675,16 @@ public: class sp_variable *m_index; class sp_variable *m_upper_bound; int m_direction; + void init() + { + m_index= 0; + m_upper_bound= 0; + m_direction= 0; + } + void init(const Lex_for_loop_st &other) + { + *this= other; + } }; |