Skip to content

Commit 775a56e

Browse files
committed
Revert "Default to NullPool for Linux ODBC drivers"
This reverts commit 2905589.
1 parent 2905589 commit 775a56e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

sqlalchemy_teradata/dialect.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import sqlalchemy.types as sqltypes
1616
import sqlalchemy_teradata.types as tdtypes
1717
from itertools import groupby
18-
from teradata.tdodbc import osType
1918

2019
# ischema names is used for reflecting columns (see get_columns in the dialect)
2120
ischema_names = {
@@ -52,12 +51,7 @@ class TeradataDialect(default.DefaultDialect):
5251
name = 'teradata'
5352
driver = 'teradata'
5453
default_paramstyle = 'qmark'
55-
56-
#Connection pooling not supported by Linux ODBC driver
57-
if osType=='Linux':
58-
poolclass = pool.NullPool
59-
else:
60-
poolclass = pool.SingletonThreadPool
54+
poolclass = pool.SingletonThreadPool
6155

6256
statement_compiler = TeradataCompiler
6357
ddl_compiler = TeradataDDLCompiler

0 commit comments

Comments
 (0)