Commit c968a7eb authored by Sergei Golubchik's avatar Sergei Golubchik Committed by Eugene Kosov

Fix tests

* test results
* HISTORY in ora parser
parent 64749432
...@@ -273,7 +273,6 @@ static SYMBOL symbols[] = { ...@@ -273,7 +273,6 @@ static SYMBOL symbols[] = {
{ "HAVING", SYM(HAVING)}, { "HAVING", SYM(HAVING)},
{ "HELP", SYM(HELP_SYM)}, { "HELP", SYM(HELP_SYM)},
{ "HIGH_PRIORITY", SYM(HIGH_PRIORITY)}, { "HIGH_PRIORITY", SYM(HIGH_PRIORITY)},
{ "INVISIBLE", SYM(INVISIBLE_SYM)},
{ "HISTORY", SYM(HISTORY_SYM)}, { "HISTORY", SYM(HISTORY_SYM)},
{ "HOST", SYM(HOST_SYM)}, { "HOST", SYM(HOST_SYM)},
{ "HOSTS", SYM(HOSTS_SYM)}, { "HOSTS", SYM(HOSTS_SYM)},
...@@ -310,6 +309,7 @@ static SYMBOL symbols[] = { ...@@ -310,6 +309,7 @@ static SYMBOL symbols[] = {
{ "INT8", SYM(BIGINT)}, { "INT8", SYM(BIGINT)},
{ "INTEGER", SYM(INT_SYM)}, { "INTEGER", SYM(INT_SYM)},
{ "INTERVAL", SYM(INTERVAL_SYM)}, { "INTERVAL", SYM(INTERVAL_SYM)},
{ "INVISIBLE", SYM(INVISIBLE_SYM)},
{ "INTO", SYM(INTO)}, { "INTO", SYM(INTO)},
{ "IO", SYM(IO_SYM)}, { "IO", SYM(IO_SYM)},
{ "IO_THREAD", SYM(RELAY_THREAD)}, { "IO_THREAD", SYM(RELAY_THREAD)},
......
...@@ -1156,7 +1156,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); ...@@ -1156,7 +1156,6 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token HEX_NUM %token HEX_NUM
%token HEX_STRING %token HEX_STRING
%token HIGH_PRIORITY %token HIGH_PRIORITY
%token INVISIBLE_SYM
%token HISTORY_SYM /* MYSQL */ %token HISTORY_SYM /* MYSQL */
%token HOST_SYM %token HOST_SYM
%token HOSTS_SYM %token HOSTS_SYM
...@@ -1198,6 +1197,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); ...@@ -1198,6 +1197,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token ISOPEN_SYM /* Oracle-N */ %token ISOPEN_SYM /* Oracle-N */
%token ISSUER_SYM %token ISSUER_SYM
%token ITERATE_SYM %token ITERATE_SYM
%token INVISIBLE_SYM
%token JOIN_SYM /* SQL-2003-R */ %token JOIN_SYM /* SQL-2003-R */
%token JSON_SYM %token JSON_SYM
%token KEYS %token KEYS
...@@ -15517,7 +15517,6 @@ keyword_sp_not_data_type: ...@@ -15517,7 +15517,6 @@ keyword_sp_not_data_type:
| GOTO_SYM {} | GOTO_SYM {}
| HASH_SYM {} | HASH_SYM {}
| HARD_SYM {} | HARD_SYM {}
| INVISIBLE_SYM {}
| HISTORY_SYM {} | HISTORY_SYM {}
| HOSTS_SYM {} | HOSTS_SYM {}
| HOUR_SYM {} | HOUR_SYM {}
...@@ -15536,6 +15535,7 @@ keyword_sp_not_data_type: ...@@ -15536,6 +15535,7 @@ keyword_sp_not_data_type:
| ISOPEN_SYM {} | ISOPEN_SYM {}
| ISSUER_SYM {} | ISSUER_SYM {}
| INSERT_METHOD {} | INSERT_METHOD {}
| INVISIBLE_SYM {}
| KEY_BLOCK_SIZE {} | KEY_BLOCK_SIZE {}
| LAST_VALUE {} | LAST_VALUE {}
| LAST_SYM {} | LAST_SYM {}
......
...@@ -284,6 +284,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); ...@@ -284,6 +284,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
Comments for TOKENS. Comments for TOKENS.
For each token, please include in the same line a comment that contains For each token, please include in the same line a comment that contains
the following tags: the following tags:
SQL-2011-R : Reserved keyword as per SQL-2011
SQL-2011-N : Non Reserved keyword as per SQL-2011 SQL-2011-N : Non Reserved keyword as per SQL-2011
SQL-2003-R : Reserved keyword as per SQL-2003 SQL-2003-R : Reserved keyword as per SQL-2003
SQL-2003-N : Non Reserved keyword as per SQL-2003 SQL-2003-N : Non Reserved keyword as per SQL-2003
...@@ -538,7 +539,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); ...@@ -538,7 +539,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token HEX_NUM %token HEX_NUM
%token HEX_STRING %token HEX_STRING
%token HIGH_PRIORITY %token HIGH_PRIORITY
%token INVISIBLE_SYM %token HISTORY_SYM /* MYSQL */
%token HOST_SYM %token HOST_SYM
%token HOSTS_SYM %token HOSTS_SYM
%token HOUR_MICROSECOND_SYM %token HOUR_MICROSECOND_SYM
...@@ -579,6 +580,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); ...@@ -579,6 +580,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token ISOPEN_SYM /* Oracle-N */ %token ISOPEN_SYM /* Oracle-N */
%token ISSUER_SYM %token ISSUER_SYM
%token ITERATE_SYM %token ITERATE_SYM
%token INVISIBLE_SYM
%token JOIN_SYM /* SQL-2003-R */ %token JOIN_SYM /* SQL-2003-R */
%token JSON_SYM %token JSON_SYM
%token KEYS %token KEYS
...@@ -743,7 +745,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); ...@@ -743,7 +745,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token PERCENT_RANK_SYM %token PERCENT_RANK_SYM
%token PERCENTILE_CONT_SYM %token PERCENTILE_CONT_SYM
%token PERCENTILE_DISC_SYM %token PERCENTILE_DISC_SYM
%token PERIOD_SYM /* 32N2439 */ %token PERIOD_SYM /* SQL-2011-R */
%token PERSISTENT_SYM %token PERSISTENT_SYM
%token PHASE_SYM %token PHASE_SYM
%token PLUGINS_SYM %token PLUGINS_SYM
...@@ -910,8 +912,8 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); ...@@ -910,8 +912,8 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token SWAPS_SYM %token SWAPS_SYM
%token SWITCHES_SYM %token SWITCHES_SYM
%token SYSDATE %token SYSDATE
%token SYSTEM /* 32N2439 */ %token SYSTEM /* SQL-2011-R */
%token SYSTEM_TIME_SYM /* 32N2439 */ %token SYSTEM_TIME_SYM /* SQL-2011-R */
%token TABLES %token TABLES
%token TABLESPACE %token TABLESPACE
%token TABLE_REF_PRIORITY %token TABLE_REF_PRIORITY
...@@ -982,7 +984,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); ...@@ -982,7 +984,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%token VARIANCE_SYM %token VARIANCE_SYM
%token VARYING /* SQL-2003-R */ %token VARYING /* SQL-2003-R */
%token VAR_SAMP_SYM %token VAR_SAMP_SYM
%token VERSIONING_SYM /* 32N2439 */ %token VERSIONING_SYM /* SQL-2011-R */
%token VIA_SYM %token VIA_SYM
%token VIEW_SYM /* SQL-2003-N */ %token VIEW_SYM /* SQL-2003-N */
%token VIRTUAL_SYM %token VIRTUAL_SYM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment