chl-wxp commented on code in PR #6998:
URL: https://github.com/apache/seatunnel/pull/6998#discussion_r1642424192


##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/catalog/mysql/MysqlCreateTableSqlBuilder.java:
##########
@@ -191,7 +191,10 @@ private String buildColumnIdentifySql(Column column, 
String catalogName) {
         }
 
         if (column.getComment() != null) {
-            columnSqls.add("COMMENT '" + column.getComment() + "'");
+            columnSqls.add(
+                    "COMMENT '"
+                            + column.getComment().replace("'", 
"''").replace("\\", "\\\\")

Review Comment:
   These two special sensitive characters are currently discovered



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to