Skip to content

Commit

Permalink
Support role, database, schema or warehouse names with special charac…
Browse files Browse the repository at this point in the history
…ters

Fix for issue Snowflake-Labs#215
  • Loading branch information
jonathancisneros authored Jan 2, 2024
1 parent de2bca1 commit 66c6bca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions schemachange/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ class SnowflakeSchemachangeSession:
+ "CHECKSUM, EXECUTION_TIME, STATUS, INSTALLED_BY, INSTALLED_ON) values ('{script_version}'," \
+ "'{script_description}','{script_name}','{script_type}','{checksum}',{execution_time}," \
+ "'{status}','{user}',CURRENT_TIMESTAMP);"
_q_set_sess_role = 'USE ROLE {role};'
_q_set_sess_database = 'USE DATABASE {database};'
_q_set_sess_schema = 'USE SCHEMA {schema};'
_q_set_sess_warehouse = 'USE WAREHOUSE {warehouse};'
_q_set_sess_role = 'USE ROLE "{role}";'
_q_set_sess_database = 'USE DATABASE "{database}";'
_q_set_sess_schema = 'USE SCHEMA "{schema}";'
_q_set_sess_warehouse = 'USE WAREHOUSE "{warehouse}";'
#endregion Query Templates


Expand Down

0 comments on commit 66c6bca

Please sign in to comment.