Skip to content

Commit 976b793

Browse files
authored
Escape database name in databricks_sql_permissions resource (#1730)
1 parent c297ca3 commit 976b793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

access/resource_sql_permissions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (ta *SqlPermissions) typeAndKey() (string, string) {
5050
return "VIEW", fmt.Sprintf("`%s`.`%s`", ta.actualDatabase(), ta.View)
5151
}
5252
if ta.Database != "" {
53-
return "DATABASE", ta.Database
53+
return "DATABASE", fmt.Sprintf("`%s`", ta.Database)
5454
}
5555
if ta.Catalog {
5656
return "CATALOG", ""

0 commit comments

Comments
 (0)