Skip to content

Commit

Permalink
[PlSql] Allow '\r' '\n' in quotedIdentifier (antlr#3896)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiefei30 authored Dec 19, 2023
1 parent be1d809 commit 8b6c521
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sql/plsql/PlSqlLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,7 @@ fragment QS_SHARP : '#' .*? '#';
fragment QS_QUOTE : '\'' .*? '\'';
fragment QS_DQUOTE : '"' .*? '"';

DELIMITED_ID: '"' (~('"' | '\r' | '\n') | '"' '"')+ '"';
DELIMITED_ID: '"' (~ [\u0000"] | '"' '"')+ '"';
PERCENT : '%';
AMPERSAND : '&';
Expand Down
4 changes: 4 additions & 0 deletions sql/plsql/examples/create_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ CREATE TABLE T (
data xmltype
);

CREATE TABLE "D1
"
("c1" INTEGER, "C2" INTEGER);

create TABLE PROCESSED AS (
select * FROM T_ORDER_PROCESSED f)
-- WHERE
Expand Down

0 comments on commit 8b6c521

Please sign in to comment.