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 8526b9f commit c3b6e62
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,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("\\","") : "";
return new ColumnDefinition(colName, colType, isKey, aggType, !isNotNull, defaultValue,
onUpdateDefaultValue, comment);
}
Expand Down

0 comments on commit c3b6e62

Please sign in to comment.