summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorRucha Deodhar <rucha.deodhar@mariadb.com>2021-10-15 00:40:06 +0530
committerRucha Deodhar <rucha.deodhar@mariadb.com>2021-10-15 19:00:27 +0530
commitafa411cda0ccebe822f3dd86acc359d0f61b746f (patch)
treef87012568da02b83eb2485f0e5fb70c5290e75d0 /sql/sql_class.h
parenta6cf8b34a834e5d16155f8bb3f33d57a4f87eb9e (diff)
downloadmariadb-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_class.h')
-rw-r--r--sql/sql_class.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index e569fcd32d6..e8793e1688f 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -560,7 +560,8 @@ typedef enum enum_diag_condition_item_name
DIAG_CURSOR_NAME= 9,
DIAG_MESSAGE_TEXT= 10,
DIAG_MYSQL_ERRNO= 11,
- LAST_DIAG_SET_PROPERTY= DIAG_MYSQL_ERRNO
+ DIAG_ROW_NUMBER= 12,
+ LAST_DIAG_SET_PROPERTY= DIAG_ROW_NUMBER
} Diag_condition_item_name;
/**