1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-10411 Providing compatibility for basic PL/SQL constructs

Part 9: EXCEPTION handlers

EXCEPTION is now supported in inner blocks.
This commit is contained in:
Alexander Barkov
2016-08-16 10:24:12 +04:00
parent d2b007d6bc
commit 4b61495576
7 changed files with 495 additions and 12 deletions

View File

@ -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 */