Skip to content

Commit 9d729ae

Browse files
committed
Merge pull request avidal#5 from kwist-sgr/patch-1
Option 'host_is_server' not work
2 parents fce3262 + 0657834 commit 9d729ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql_server/pyodbc/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def get_new_connection(self, conn_params):
201201
# Only append DRIVER if DATABASE_ODBC_DSN hasn't been set
202202
cstr_parts.append('DRIVER={%s}' % driver)
203203
if ms_drivers.match(driver) or driver == 'FreeTDS' and \
204-
conn_params.get('host_is_server', False):
204+
options.get('host_is_server', False):
205205
if port:
206206
host += ';PORT=%s' % port
207207
cstr_parts.append('SERVER=%s' % host)

0 commit comments

Comments
 (0)