Open misaya98 opened 1 year ago
temporary workaroud solution change parser to
constant
: TIMESTAMP (quoted_string | bind_variable) (AT TIME ZONE quoted_string)?
| INTERVAL (quoted_string | bind_variable | general_element_part)
(YEAR | MONTH | DAY | HOUR | MINUTE | SECOND)
('(' (UNSIGNED_INTEGER | bind_variable) (',' (UNSIGNED_INTEGER | bind_variable) )? ')')?
(TO ( DAY | HOUR | MINUTE | SECOND ('(' (UNSIGNED_INTEGER | bind_variable) ')')?))?
| numeric
| DATE quoted_string
| quoted_string
| NULL_
| TRUE
| FALSE
| DBTIMEZONE
| SESSIONTIMEZONE
| MINVALUE
| MAXVALUE
| DEFAULT
| STATIC_EXPRESSION
;
and add to lexer :
STATIC_EXPRESSION: '$''$' SIMPLE_LETTER (SIMPLE_LETTER | '$' | '_' | '#' | [0-9])*;
When i use the g4 file https://github.com/antlr/grammars-v4/blob/master/sql/plsql/PlSqlParser.g4
and parse the sql like below
I got the error:
Can anyone help to fix the issue?