Skip to content

Commit

Permalink
compatible with user single quote escape
Browse files Browse the repository at this point in the history
  • Loading branch information
karolusz committed Jul 10, 2023
1 parent 1c275ea commit 6bbe0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/resource_sql_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (ti *SqlTableInfo) FullName() string {
}

func parseComment(s string) string {
return strings.ReplaceAll(s, "'", `\'`)
return strings.ReplaceAll(strings.ReplaceAll(s, `\'`, `'`), `'`, `\'`)
}

// These properties are added automatically
Expand Down

0 comments on commit 6bbe0b1

Please sign in to comment.