Skip to content

Commit 3699f62

Browse files
committed
add support for sqlalchemy 2
1 parent a077110 commit 3699f62

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
install_requires=[
2222
# requires sqlalchemy.sql.base.DialectKWArgs.dialect_options, new in
2323
# version 0.9.2
24-
'SQLAlchemy>=0.9.2,<2.0.0',
24+
'SQLAlchemy>=0.9.2,<3.0.0',
2525
'packaging',
2626
],
2727
classifiers=[

sqlalchemy_redshift/dialect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,9 +1368,8 @@ def on_connect(self):
13681368
fns = []
13691369

13701370
def on_connect(conn):
1371-
from sqlalchemy import util
13721371
from sqlalchemy.sql.elements import quoted_name
1373-
conn.py_types[quoted_name] = conn.py_types[util.text_type]
1372+
conn.py_types[quoted_name] = conn.py_types[str]
13741373

13751374
fns.append(on_connect)
13761375

0 commit comments

Comments
 (0)