morrySnow commented on code in PR #45187:
URL: https://github.com/apache/doris/pull/45187#discussion_r1875481195


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/StringLiteral.java:
##########
@@ -135,6 +135,9 @@ public boolean isMinValue() {
 
     @Override
     public String toSqlImpl() {
+        if (value.equals("\\")) {
+            value = "\\\\";
+        }
         return "'" + value.replaceAll("'", "''") + "'";

Review Comment:
   maybe we need a util to process string escape.
   mysql doc: https://dev.mysql.com/doc/refman/8.4/en/string-literals.html



-- 
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: commits-unsubscr...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to