summaryrefslogtreecommitdiff
path: root/sql/structs.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-08-09 15:53:15 +0400
committerAlexander Barkov <bar@mariadb.org>2017-04-05 15:02:40 +0400
commite399949bfe82676c04757995425dabb13d7658dc (patch)
tree37b6672187d32c6c595223b9e20f89dfe9ccc990 /sql/structs.h
parent365e0b3178f5377529d9c6579118212e544552dc (diff)
downloadmariadb-git-e399949bfe82676c04757995425dabb13d7658dc.tar.gz
Adding Lex_spblock_st::init() and Lex_spblock_st::join().
Diffstat (limited to 'sql/structs.h')
-rw-r--r--sql/structs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/structs.h b/sql/structs.h
index dcc08b5ffe8..d32cc5de70b 100644
--- a/sql/structs.h
+++ b/sql/structs.h
@@ -635,6 +635,17 @@ public:
int conds;
int hndlrs;
int curs;
+ void init()
+ {
+ vars= conds= hndlrs= curs= 0;
+ }
+ void join(const Lex_spblock_st &b1, const Lex_spblock_st &b2)
+ {
+ vars= b1.vars + b2.vars;
+ conds= b1.conds + b2.conds;
+ hndlrs= b1.hndlrs + b2.hndlrs;
+ curs= b1.curs + b2.curs;
+ }
};