Skip to content

Commit

Permalink
fix: escape string escape_unenclosed_field (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
ugmuka committed Mar 4, 2022
1 parent 5178aa6 commit 6f5578f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/file_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func CreateFileFormat(data *schema.ResourceData, meta interface{}) error {
}

if v, ok, err := getFormatTypeOption(data, formatType, "escape_unenclosed_field"); ok && err == nil {
builder.WithEscapeUnenclosedField(v.(string))
builder.WithEscapeUnenclosedField(snowflake.EscapeString(v.(string)))
} else if err != nil {
return err
}
Expand Down

0 comments on commit 6f5578f

Please sign in to comment.