Skip to content

Commit

Permalink
Ensure role is set prior to db/schema setting (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-shchen authored Jan 18, 2023
1 parent 938e1d0 commit 1c86912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snowcli/snow_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def uploadFileToStage(
schema,
overwrite,
):
self.cs.execute(f"use database {database}")
self.cs.execute(f"use role {role}")
self.cs.execute(f"use database {database}")
self.cs.execute(f"use schema {schema}")
self.cs.execute(
f"create stage if not exists {destination_stage} "
Expand Down

0 comments on commit 1c86912

Please sign in to comment.