You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "strongduanmu (via GitHub)" <gi...@apache.org> on 2023/07/03 04:00:51 UTC

[GitHub] [shardingsphere] strongduanmu commented on a diff in pull request #26731: Support RLIKE parse for MySQL

strongduanmu commented on code in PR #26731:
URL: https://github.com/apache/shardingsphere/pull/26731#discussion_r1250174708


##########
parser/sql/dialect/mysql/src/main/antlr4/imports/mysql/BaseRule.g4:
##########
@@ -872,7 +872,7 @@ predicate
     | bitExpr NOT? BETWEEN bitExpr AND predicate
     | bitExpr SOUNDS LIKE bitExpr
     | bitExpr NOT? LIKE simpleExpr (ESCAPE simpleExpr)?
-    | bitExpr NOT? REGEXP bitExpr
+    | bitExpr NOT? (REGEXP | RLIKE) bitExpr

Review Comment:
   Since RLIKE and REGEXP are synonyms, this change is ok.
   
   https://github.com/mysql/mysql-server/blob/ea7087d885006918ad54458e7aad215b1650312c/sql/lex.h#L610



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org