Skip to content

Commit 7fbb97b

Browse files
authored
[plsql] Fix for #2225 -- rename EMPTY to EMPTY_ to remove symbol conflict (#3655)
* Fix for #2225 * Fix warning messages from C# compiler. * Add in changes from master into this branch (Couldn't get github fast forward, nor github pr to work.)
1 parent c82d78f commit 7fbb97b

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

sql/plsql/CSharp/PlSqlLexerBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Reflection;
44
using Antlr4.Runtime;
55
using Antlr4.Runtime.Misc;
6-
using Antlr4.Runtime;
76

87
public class PlSqlLexerBase : Lexer
98
{

sql/plsql/CSharp/PlSqlParserBase.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
using Antlr4.Runtime;
21
using System;
32
using System.IO;
43
using System.Reflection;
54
using Antlr4.Runtime;
65
using Antlr4.Runtime.Misc;
7-
using Antlr4.Runtime;
86

97
public abstract class PlSqlParserBase : Parser
108
{

sql/plsql/PlSqlLexer.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ ELSIF: 'ELSIF';
485485
EM: 'EM';
486486
EMPTY_BLOB: 'EMPTY_BLOB';
487487
EMPTY_CLOB: 'EMPTY_CLOB';
488-
EMPTY: 'EMPTY';
488+
EMPTY_: 'EMPTY';
489489
ENABLE_ALL: 'ENABLE_ALL';
490490
ENABLE: 'ENABLE';
491491
ENABLE_PARALLEL_DML: 'ENABLE_PARALLEL_DML';

sql/plsql/PlSqlParser.g4

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6084,7 +6084,7 @@ unary_logical_expression
60846084
logical_operation:
60856085
( NULL_
60866086
| NAN | PRESENT
6087-
| INFINITE | A_LETTER SET | EMPTY
6087+
| INFINITE | A_LETTER SET | EMPTY_
60886088
| OF TYPE? '(' ONLY? type_spec (',' type_spec)* ')'
60896089
)
60906090
;
@@ -6244,9 +6244,9 @@ json_function
62446244
| JSON_OBJECT '(' json_object_content ')'
62456245
| JSON_OBJECTAGG '(' KEY? expression VALUE expression ((NULL_ | ABSENT) ON NULL_)? (RETURNING ( VARCHAR2 ('(' UNSIGNED_INTEGER ( BYTE | CHAR )? ')')? | CLOB | BLOB ))? STRICT? (WITH UNIQUE KEYS)?')'
62466246
| JSON_QUERY '(' expression (FORMAT JSON)? ',' CHAR_STRING json_query_returning_clause json_query_wrapper_clause? json_query_on_error_clause? json_query_on_empty_clause? ')'
6247-
| JSON_SERIALIZE '(' CHAR_STRING (RETURNING json_query_return_type)? PRETTY? ASCII? TRUNCATE? ((NULL_ | ERROR | EMPTY (ARRAY | OBJECT)) ON ERROR)? ')'
6247+
| JSON_SERIALIZE '(' CHAR_STRING (RETURNING json_query_return_type)? PRETTY? ASCII? TRUNCATE? ((NULL_ | ERROR | EMPTY_ (ARRAY | OBJECT)) ON ERROR)? ')'
62486248
| JSON_TRANSFORM '(' expression ',' json_transform_op (',' json_transform_op)* ')'
6249-
| JSON_VALUE '(' expression (FORMAT JSON)? (',' CHAR_STRING? json_value_return_clause? ((ERROR | NULL_ | DEFAULT literal)? ON ERROR)? ((ERROR | NULL_ | DEFAULT literal)? ON EMPTY)? json_value_on_mismatch_clause?')')?
6249+
| JSON_VALUE '(' expression (FORMAT JSON)? (',' CHAR_STRING? json_value_return_clause? ((ERROR | NULL_ | DEFAULT literal)? ON ERROR)? ((ERROR | NULL_ | DEFAULT literal)? ON EMPTY_)? json_value_on_mismatch_clause?')')?
62506250
;
62516251

62526252
json_object_content
@@ -6260,7 +6260,7 @@ json_object_entry
62606260
;
62616261

62626262
json_table_clause
6263-
: JSON_TABLE '(' expression (FORMAT JSON)? (',' CHAR_STRING)? ((ERROR | NULL_) ON ERROR)? ((EMPTY | NULL_) ON EMPTY)? json_column_clause? ')'
6263+
: JSON_TABLE '(' expression (FORMAT JSON)? (',' CHAR_STRING)? ((ERROR | NULL_) ON ERROR)? ((EMPTY_ | NULL_) ON EMPTY_)? json_column_clause? ')'
62646264
;
62656265

62666266
json_array_element
@@ -6308,11 +6308,11 @@ json_query_wrapper_clause
63086308
;
63096309

63106310
json_query_on_error_clause
6311-
: (ERROR | NULL_ | EMPTY | EMPTY ARRAY | EMPTY OBJECT)? ON ERROR
6311+
: (ERROR | NULL_ | EMPTY_ | EMPTY_ ARRAY | EMPTY_ OBJECT)? ON ERROR
63126312
;
63136313

63146314
json_query_on_empty_clause
6315-
: (ERROR | NULL_ | EMPTY | EMPTY ARRAY | EMPTY OBJECT)? ON EMPTY
6315+
: (ERROR | NULL_ | EMPTY_ | EMPTY_ ARRAY | EMPTY_ OBJECT)? ON EMPTY_
63166316
;
63176317

63186318
json_value_return_clause
@@ -6394,7 +6394,7 @@ other_function
63946394
| XMLPI
63956395
'(' (NAME identifier | EVALNAME concatenation) (',' concatenation)? ')' ('.' general_element_part)*
63966396
| XMLQUERY
6397-
'(' concatenation xml_passing_clause? RETURNING CONTENT (NULL_ ON EMPTY)? ')' ('.' general_element_part)*
6397+
'(' concatenation xml_passing_clause? RETURNING CONTENT (NULL_ ON EMPTY_)? ')' ('.' general_element_part)*
63986398
| XMLROOT
63996399
'(' concatenation (',' xmlroot_param_version_part)? (',' xmlroot_param_standalone_part)? ')' ('.' general_element_part)*
64006400
| XMLSERIALIZE
@@ -7884,7 +7884,7 @@ non_reserved_keywords_pre12c
78847884
| ELIMINATE_OUTER_JOIN
78857885
| EMPTY_BLOB
78867886
| EMPTY_CLOB
7887-
| EMPTY
7887+
| EMPTY_
78887888
| ENABLE
78897889
| ENABLE_PRESET
78907890
| ENCODING

0 commit comments

Comments
 (0)