From afa411cda0ccebe822f3dd86acc359d0f61b746f Mon Sep 17 00:00:00 2001 From: Rucha Deodhar Date: Fri, 15 Oct 2021 00:40:06 +0530 Subject: MDEV-26832: ROW_NUMBER in SIGNAL/RESIGNAL causes a syntax error Analysis: Parser was missing ROW_NUMBER as syntax for SIGNAL and RESIGNAL. Fix: Fix parser and fix how m_row_number is copied like other attributes to avoid ROW_NUMBER from assuming default value. --- sql/sql_yacc.yy | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/sql_yacc.yy') diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index deb78f4dfe4..841ae6ff1f1 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -3475,6 +3475,8 @@ signal_condition_information_item_name: { $$= DIAG_MESSAGE_TEXT; } | MYSQL_ERRNO_SYM { $$= DIAG_MYSQL_ERRNO; } + | ROW_NUMBER_SYM + { $$= DIAG_ROW_NUMBER; } ; resignal_stmt: -- cgit v1.2.1