Skip to content

Commit 0657834

Browse files
committed
Option 'host_is_server' not work
Because taken from conn_params, but must of conn_params ['OPTIONS']
1 parent fce3262 commit 0657834

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)