Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Support Beijing region endpoints (fix #97)
Browse files Browse the repository at this point in the history
  • Loading branch information
laughingman7743 committed Apr 9, 2020
1 parent fd74892 commit 92c9f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyathenajdbc/sqlalchemy_athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def create_connect_args(self, url):
opts = {
'access_key': url.username if url.username else None,
'secret_key': url.password if url.password else None,
'region_name': re.sub(r'^athena\.([a-z0-9-]+)\.amazonaws\.com$', r'\1', url.host),
'region_name': re.sub(r'^athena\.([a-z0-9-]+)\.amazonaws\.(com|com.cn)$', r'\1', url.host),
'schema_name': url.database if url.database else 'default'
}
opts.update(url.query)
Expand Down

0 comments on commit 92c9f84

Please sign in to comment.