diff options
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; + } }; |