diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-03-08 22:32:01 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-04-05 15:02:58 +0400 |
commit | 400de202792246bc1f6f5cb8813ecd35dc923200 (patch) | |
tree | 408babedc96afe37e982ffc8bf5482f443a3e5f3 /sql/lex.h | |
parent | 7ca2f816a8f83f7e826191621a9e85ff932dc2cb (diff) | |
download | mariadb-git-400de202792246bc1f6f5cb8813ecd35dc923200.tar.gz |
MDEV-12209 sql_mode=ORACLE: Syntax error in a OPEN cursor with parameters makes the server crash
The bug was introduced in the patch for "MDEV-10597 Cursors with parameters".
The LEX created in assignment_source_expr was not put into
thd->lex->sphead->m_lex (the stack of LEX'es), so syntax error in "expr"
caused a wrong memory cleanup in sp_head::~sp_head().
The fix changes the code to use sp_head::push_lex() followed by
sp_head::restore_lex(), like it happens in all other similar cases.
Diffstat (limited to 'sql/lex.h')
0 files changed, 0 insertions, 0 deletions