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

Update account_parameter.go #3108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Richard-Barrett
Copy link

Fixes #1679

  • Added error handling to check if defaultValue is nil.
  • Added error statements to provide better insight into what’s happening when the account parameter is being reset.
  • More detailed error messages to give you more context when debugging.

Test Plan

  • acceptance tests

References

defaultValue := defaultParameter.Default
if defaultValue == "" {
Copy link
Collaborator

@sfc-gh-asawicki sfc-gh-asawicki Oct 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is incorrect. There are parameters which default to none value (e.g. https://docs.snowflake.com/en/sql-reference/parameters#query-tag).

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.

SQL Compilation Error While Deleting a snowflake_account_parameter Resource.
2 participants