Skip to content

Commit cf34b77

Browse files
committed
UID needs to be set in connection string, so set default
1 parent a31af19 commit cf34b77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql_server/pyodbc/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ def get_new_connection(self, conn_params):
298298
if auth:
299299
cstr_parts['Authentication'] = auth
300300
if auth == 'ActiveDirectoryInteractive':
301+
cstr_parts.setdefault('UID', '')
301302
cstr_parts.pop('PWD', '')
302303
cstr_parts['Trusted_Connection'] = 'no'
303304

0 commit comments

Comments
 (0)