Skip to content

Commit

Permalink
Fix external function varchar return type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nijave committed Feb 14, 2025
1 parent af5d1e4 commit 11c5fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/external_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func ReadContextExternalFunction(ctx context.Context, d *schema.ResourceData, me
case "returns":
returnType := row.Value
// We first check for VARIANT or OBJECT
if returnType == "VARIANT" || returnType == "OBJECT" {
if returnType == "VARIANT" || returnType == "OBJECT" || returnType == "VARCHAR" {
if err := d.Set("return_type", returnType); err != nil {
return diag.Errorf("error setting return_type: %v", err)
}
Expand Down

0 comments on commit 11c5fcf

Please sign in to comment.