diff options
author | Alexander Barkov <bar@mariadb.com> | 2018-06-20 13:29:11 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2018-06-20 13:29:11 +0400 |
commit | 9c53cbdd8887f0f8bcdade24a4be183a3b354bc9 (patch) | |
tree | 0301dfd03a919bb961f021df0eb2e37b817aaa9d /sql/structs.h | |
parent | b534a7b89ef39cd75bfe09524be044bc16ea2f48 (diff) | |
download | mariadb-git-9c53cbdd8887f0f8bcdade24a4be183a3b354bc9.tar.gz |
MDEV-15941 Explicit cursor FOR loop does not close the cursor
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/structs.h b/sql/structs.h index d530dd73b7c..d8b95a3509a 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -720,6 +720,10 @@ public: *this= other; } bool is_for_loop_cursor() const { return m_upper_bound == NULL; } + bool is_for_loop_explicit_cursor() const + { + return is_for_loop_cursor() && !m_implicit_cursor; + } }; |