From 6c0badc8c674fa24334dd8d76ee4e7c2a9ebbf17 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:45:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- dbt/adapters/sqlserver/sqlserver_connections.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbt/adapters/sqlserver/sqlserver_connections.py b/dbt/adapters/sqlserver/sqlserver_connections.py index 4e194fcc..a91baeb1 100644 --- a/dbt/adapters/sqlserver/sqlserver_connections.py +++ b/dbt/adapters/sqlserver/sqlserver_connections.py @@ -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__ @@ -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,