We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce3262 commit 0657834Copy full SHA for 0657834
sql_server/pyodbc/base.py
@@ -201,7 +201,7 @@ def get_new_connection(self, conn_params):
201
# Only append DRIVER if DATABASE_ODBC_DSN hasn't been set
202
cstr_parts.append('DRIVER={%s}' % driver)
203
if ms_drivers.match(driver) or driver == 'FreeTDS' and \
204
- conn_params.get('host_is_server', False):
+ options.get('host_is_server', False):
205
if port:
206
host += ';PORT=%s' % port
207
cstr_parts.append('SERVER=%s' % host)
0 commit comments