Skip to content

Commit

Permalink
Fix dbshell's client_session_keep_alive and passcode_in_password options
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Dec 16, 2023
1 parent 4ccfa65 commit 224962a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
dictionary of the `DATABASES` setting instead of `'private_key'`. This is
now the documented pattern in the README.

* Fixed `dbshell` crash if using the `client_session_keep_alive` or
`passcode_in_password` options.

## 4.2 beta 1 - 2023-04-11

* Added support for `JSONField`.
Expand Down
4 changes: 2 additions & 2 deletions django_snowflake/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ def settings_to_cmd_args_env(cls, settings_dict, parameters):
if authenticator:
args += ['--authenticator', authenticator]
if client_session_keep_alive:
args += ['--client-session-keep-alive', client_session_keep_alive]
args += ['--client-session-keep-alive']
if dbname:
args += ['-d', dbname]
if host:
args += ['-h', host]
if passcode:
args += ['--mfa-passcode', passcode]
if passcode_in_password:
args += ['--mfa-passcode-in-password', passcode_in_password]
args += ['--mfa-passcode-in-password']
if private_key_file:
args += ['--private-key-path', private_key_file]
if role:
Expand Down

0 comments on commit 224962a

Please sign in to comment.