Skip to content

Commit

Permalink
Add fallthrough for unknown parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
saulbein committed Oct 9, 2023
1 parent d0847ea commit 5d7b76b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/snowflake/sqlalchemy/snowdialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,12 @@ def create_connect_args(self, url: URL):
)

for name, value in query.items():
(_, expected_type) = DEFAULT_CONFIGURATION[name]
maybe_type_configuration = DEFAULT_CONFIGURATION.get(name)
if not maybe_type_configuration:
opts[name] = value
continue

(_, expected_type) = maybe_type_configuration
if not isinstance(expected_type, tuple):
expected_type = (expected_type,)

Expand Down

0 comments on commit 5d7b76b

Please sign in to comment.