Fix inconsistent result after apply in PostgreSQL Flex database (#488)
This commit is contained in:
parent
1e767d56dc
commit
5807e2ba2f
1 changed files with 3 additions and 0 deletions
|
|
@ -348,6 +348,9 @@ func mapFields(databaseResp *postgresflex.InstanceDatabase, model *Model) error
|
|||
if !ok {
|
||||
return fmt.Errorf("owner is not a string")
|
||||
}
|
||||
// If the field is returned between with quotes, we trim them to prevent an inconsistent result after apply
|
||||
ownerStr = strings.TrimPrefix(ownerStr, `"`)
|
||||
ownerStr = strings.TrimSuffix(ownerStr, `"`)
|
||||
model.Owner = types.StringValue(ownerStr)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue