mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-27 17:06:27 -06:00
Use a string instead of the %t
modifier for printing a bool in SQL
This commit is contained in:
parent
5b66bf0745
commit
3779dfffa9
@ -169,8 +169,11 @@ func resourcePostgreSQLDatabaseCreate(d *schema.ResourceData, meta interface{})
|
||||
continue
|
||||
}
|
||||
|
||||
val := v.(bool)
|
||||
createOpts = append(createOpts, fmt.Sprintf("%s=%t", opt.sqlKey, val))
|
||||
valStr := "FALSE"
|
||||
if val := v.(bool); val {
|
||||
valStr = "TRUE"
|
||||
}
|
||||
createOpts = append(createOpts, fmt.Sprintf("%s=%s", opt.sqlKey, valStr))
|
||||
}
|
||||
|
||||
dbName := d.Get("name").(string)
|
||||
|
Loading…
Reference in New Issue
Block a user