diff options
| author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2021-10-15 00:40:06 +0530 |
|---|---|---|
| committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2021-10-15 19:00:27 +0530 |
| commit | afa411cda0ccebe822f3dd86acc359d0f61b746f (patch) | |
| tree | f87012568da02b83eb2485f0e5fb70c5290e75d0 /sql/sql_yacc.yy | |
| parent | a6cf8b34a834e5d16155f8bb3f33d57a4f87eb9e (diff) | |
| download | mariadb-git-bb-10.7-MDEV-26832.tar.gz | |
MDEV-26832: ROW_NUMBER in SIGNAL/RESIGNAL causes a syntax errorbb-10.7-MDEV-26832
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.
Diffstat (limited to 'sql/sql_yacc.yy')
| -rw-r--r-- | sql/sql_yacc.yy | 2 |
1 files changed, 2 insertions, 0 deletions
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: |
