summaryrefslogtreecommitdiff
path: root/sql/sql_yacc_ora.yy
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-05-17 16:25:09 +0400
committerAlexander Barkov <bar@mariadb.com>2018-05-17 16:27:27 +0400
commit50d71c8b37631b40bcb368d8cad98899afa5bdfa (patch)
treea0281c3fd978d2f853fdf70b31f1e29c0701e1aa /sql/sql_yacc_ora.yy
parentb2f56085d4249e2cf3ed9f80d284b3ce837e9e29 (diff)
downloadmariadb-git-50d71c8b37631b40bcb368d8cad98899afa5bdfa.tar.gz
Cleanup: moving keyword comments such as SQL-2003-R from rules to %token commands
Reasoning: - Avoid duplicate comments, both in %token and in the "keyword*" rules. - The space in the rules will be needed for %prec commands.
Diffstat (limited to 'sql/sql_yacc_ora.yy')
-rw-r--r--sql/sql_yacc_ora.yy30
1 files changed, 15 insertions, 15 deletions
diff --git a/sql/sql_yacc_ora.yy b/sql/sql_yacc_ora.yy
index 4d209f1aa8a..523ac83936c 100644
--- a/sql/sql_yacc_ora.yy
+++ b/sql/sql_yacc_ora.yy
@@ -640,7 +640,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%token <kwd> BIT_SYM /* MYSQL-FUNC */
%token <kwd> BLOCK_SYM
%token <kwd> BOOL_SYM
-%token <kwd> BOOLEAN_SYM /* SQL-2003-R */
+%token <kwd> BOOLEAN_SYM /* SQL-2003-R, PLSQL-R */
%token <kwd> BTREE_SYM
%token <kwd> BYTE_SYM
%token <kwd> CACHE_SYM
@@ -691,7 +691,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%token <kwd> DATA_SYM /* SQL-2003-N */
%token <kwd> DATETIME
%token <kwd> DATE_FORMAT_SYM /* MYSQL-FUNC */
-%token <kwd> DATE_SYM /* SQL-2003-R */
+%token <kwd> DATE_SYM /* SQL-2003-R, Oracle-R, PLSQL-R */
%token <kwd> DAY_SYM /* SQL-2003-R */
%token <kwd> DEALLOCATE_SYM /* SQL-2003-R */
%token <kwd> DECODE_SYM /* Oracle function, non-reserved */
@@ -855,7 +855,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%token <kwd> NOMINVALUE_SYM
%token <kwd> NO_WAIT_SYM
%token <kwd> NOWAIT_SYM
-%token <kwd> NUMBER_SYM /* SQL-2003-N */
+%token <kwd> NUMBER_SYM /* SQL-2003-N, Oracle-R, PLSQL-R */
%token <kwd> NVARCHAR_SYM
%token <kwd> OF_SYM /* SQL-1992-R, Oracle-R */
%token <kwd> OFFSET_SYM
@@ -897,7 +897,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%token <kwd> QUARTER_SYM
%token <kwd> QUERY_SYM
%token <kwd> QUICK
-%token <kwd> RAW /* Oracle */
+%token <kwd> RAW /* Oracle-R */
%token <kwd> READ_ONLY_SYM
%token <kwd> REBUILD_SYM
%token <kwd> RECOVER_SYM
@@ -994,7 +994,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%token <kwd> TIMESTAMP /* SQL-2003-R */
%token <kwd> TIMESTAMP_ADD
%token <kwd> TIMESTAMP_DIFF
-%token <kwd> TIME_SYM /* SQL-2003-R */
+%token <kwd> TIME_SYM /* SQL-2003-R, Oracle-R */
%token <kwd> TRANSACTION_SYM
%token <kwd> TRANSACTIONAL_SYM
%token <kwd> TRIGGERS_SYM
@@ -1016,7 +1016,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%token <kwd> USER_SYM /* SQL-2003-R */
%token <kwd> USE_FRM
%token <kwd> VALUE_SYM /* SQL-2003-R */
-%token <kwd> VARCHAR2 /* Oracle */
+%token <kwd> VARCHAR2 /* Oracle-R, PLSQL-R */
%token <kwd> VARIABLES
%token <kwd> VERSIONING_SYM /* SQL-2011-R */
%token <kwd> VIA_SYM
@@ -15250,10 +15250,10 @@ keyword_sp_verb_clause:
*/
keyword_sp_data_type:
BIT_SYM
- | BOOLEAN_SYM /* PLSQL-R */
+ | BOOLEAN_SYM
| BOOL_SYM
| CLOB
- | DATE_SYM /* Oracle-R, PLSQL-R */
+ | DATE_SYM
| DATETIME
| ENUM
| FIXED_SYM
@@ -15267,17 +15267,17 @@ keyword_sp_data_type:
| MULTIPOLYGON
| NATIONAL_SYM
| NCHAR_SYM
- | NUMBER_SYM /* Oracle-R, PLSQL-R */
+ | NUMBER_SYM
| NVARCHAR_SYM
| POINT_SYM
| POLYGON
- | RAW /* Oracle-R */
+ | RAW
| ROW_SYM
| SERIAL_SYM
| TEXT_SYM
| TIMESTAMP
- | TIME_SYM /* Oracle-R */
- | VARCHAR2 /* Oracle-R, PLSQL-R */
+ | TIME_SYM
+ | VARCHAR2
| YEAR_SYM
;
@@ -15387,7 +15387,7 @@ keyword_sp_not_data_type:
| IDENTIFIED_SYM
| IGNORE_SERVER_IDS_SYM
| INCREMENT_SYM
- | IMMEDIATE_SYM /* SQL-2003-R */
+ | IMMEDIATE_SYM
| INVOKER_SYM
| IMPORT
| INDEXES
@@ -15467,7 +15467,7 @@ keyword_sp_not_data_type:
| NODEGROUP_SYM
| NONE_SYM
| NOTFOUND_SYM
- | OF_SYM /* SQL-1999-R, Oracle-R */
+ | OF_SYM
| OFFSET_SYM
| OLD_PASSWORD_SYM
| ONE_SYM
@@ -15517,7 +15517,7 @@ keyword_sp_not_data_type:
| RESUME_SYM
| RETURNED_SQLSTATE_SYM
| RETURNS_SYM
- | REUSE_SYM /* Oracle-R */
+ | REUSE_SYM
| REVERSE_SYM
| ROLE_SYM
| ROLLUP_SYM