Skip to content

Commit 7f8f1a7

Browse files
authored
Merge pull request #43 from vitorbellini/master
fix pyodbc connection string for custom port
2 parents f7fa6eb + 9f8bc87 commit 7f8f1a7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

dbt/adapters/sqlserver/connections.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def open(cls, connection):
8787
try:
8888
con_str = []
8989
con_str.append(f"DRIVER={{{credentials.driver}}}")
90-
con_str.append(f"SERVER={credentials.host}")
91-
con_str.append(f"PORT={credentials.port}")
90+
con_str.append(f"SERVER={credentials.host},{credentials.port}")
9291
con_str.append(f"Database={credentials.database}")
9392

9493
if not getattr(credentials, 'windows_login', False):

0 commit comments

Comments
 (0)