This is an automated email from the ASF dual-hosted git repository.
starocean999 pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new d0163b8f8a4 [fix](Nereids) fix '' and in string literal (#31288)
d0163b8f8a4 is described below
commit d0163b8f8a40591592662dcbdcc0f26b49777702
Author: starocean999 <[email protected]>
AuthorDate: Fri Feb 23 09:51:12 2024 +0800
[fix](Nereids) fix '' and in string literal (#31288)
---
fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisLexer.g4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisLexer.g4
b/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisLexer.g4
index 820f40f909b..ddffbad133d 100644
--- a/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisLexer.g4
+++ b/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisLexer.g4
@@ -573,8 +573,8 @@ ATSIGN: '@';
DOUBLEATSIGN: '@@';
STRING_LITERAL
- : '\'' ( ~('\''|'\\') | ('\\' .) )* '\''
- | '"' ( ~('"'|'\\') | ('\\' .) )* '"'
+ : '\'' ('\\'. | '\'\'' | ~('\'' | '\\'))* '\''
+ | '"' ( '\\'. | '""' | ~('"'| '\\') )* '"'
| 'R\'' (~'\'')* '\''
| 'R"'(~'"')* '"'
;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]