aws / amazon-redshift-python-driver

Redshift Python Connector. It supports Python Database API Specification v2.0.
Apache License 2.0
202 stars 72 forks source link

Fix: force timeouts to integer types #226

Open andrewargeros opened 3 weeks ago

andrewargeros commented 3 weeks ago

Description

literally just 2 int() casts for various cases where timeout and idp_response_timeout are read in as strings, but should be integers

Motivation and Context

Since sqlalchemy (and other packages) force url parameters to be passed as strings to redshift_connector, we can run into basic and avoidable issues from this package when connecting to Redshift via SQLAlchemy via the BrowserAzureOAuth2CredentialsProvider method.

Testing

Built package, connected, fixed the bug.

Screenshots (if appropriate)

Types of changes

Checklist