Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape database name in sql_permissions resource #1730

Merged
merged 1 commit into from
Nov 4, 2022
Merged

Conversation

0x91
Copy link
Contributor

@0x91 0x91 commented Nov 4, 2022

Fixes #1729

We have an issue using the sql_permissions with database names that require escaping. Putting backticks in the database name seems to get filtered out somewhere in Terraform.

This change explicitly escapes every database name to avoid that issue, similar to the escaping we do for Tables and Views.

I would like to add a test case for this but I'll need some pointers on how the CommandMock works.

@nfx nfx merged commit 976b793 into databricks:master Nov 4, 2022
@Lironal
Copy link

Lironal commented Nov 4, 2022

Hey @nfx - how can I see when/which provider version is this going to be out with?

@nfx nfx mentioned this pull request Nov 7, 2022
michael-berk pushed a commit to michael-berk/terraform-provider-databricks that referenced this pull request Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ISSUE] Issue with databricks_sql_permissions resource - Filters out backticks
3 participants