Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 2, 2024
1 parent 54a61b3 commit 6c0badc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbt/adapters/sqlserver/sqlserver_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from dbt.adapters.fabric.fabric_connection_manager import (
AZURE_CREDENTIAL_SCOPE,
bool_to_connection_string_arg,
get_pyodbc_attrs_before_accesstoken,
get_pyodbc_attrs_before_credentials,
get_pyodbc_attrs_before_accesstoken
)

from dbt.adapters.sqlserver import __version__
Expand Down Expand Up @@ -135,12 +135,12 @@ def open(cls, connection: Connection) -> Connection:

def connect():
logger.debug(f"Using connection string: {con_str_display}")

if credentials.authentication == "ActiveDirectoryAccessToken":
attrs_before = get_pyodbc_attrs_before_accesstoken(credentials.access_token)
else:
attrs_before = get_pyodbc_attrs_before_credentials(credentials)

handle = pyodbc.connect(
con_str_concat,
attrs_before=attrs_before,
Expand Down

0 comments on commit 6c0badc

Please sign in to comment.