diff options
Diffstat (limited to 'sql/structs.h')
-rw-r--r-- | sql/structs.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sql/structs.h b/sql/structs.h index 24a96276c4e..f0c3926e424 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -628,12 +628,20 @@ public: int dyncol_type() const { return m_type; } }; -struct Lex_spblock_st + +struct Lex_spblock_handlers_st +{ +public: + int hndlrs; + void init(int count) { hndlrs= count; } +}; + + +struct Lex_spblock_st: public Lex_spblock_handlers_st { public: int vars; int conds; - int hndlrs; int curs; void init() { @@ -653,6 +661,11 @@ class Lex_spblock: public Lex_spblock_st { public: Lex_spblock() { init(); } + Lex_spblock(const Lex_spblock_handlers_st &other) + { + vars= conds= curs= 0; + hndlrs= other.hndlrs; + } }; #endif /* STRUCTS_INCLUDED */ |