Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonLiTree committed Dec 13, 2023
1 parent ac262fa commit d9702a5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2326,7 +2326,8 @@ public ColumnDefinition visitColumnDef(ColumnDefContext ctx) {
e.getCause());
}
}
String comment = ctx.comment != null ? ctx.comment.getText() : "";
//comment should remove '\' and '(") at the beginning and end
String comment = ctx.comment != null ? ctx.comment.getText().substring(1, ctx.comment.getText().length() - 1).replace("\\","") : "";
boolean isAutoInc = ctx.AUTO_INCREMENT() != null;
return new ColumnDefinition(colName, colType, isKey, aggType, !isNotNull, isAutoInc, defaultValue,
onUpdateDefaultValue, comment);
Expand Down

0 comments on commit d9702a5

Please sign in to comment.