Skip to content

Commit

Permalink
Minor: Fix AzureSQL Authentication mode error (#16225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush-shah authored May 13, 2024
1 parent 81720a9 commit 1971d8b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ def get_connection_url(connection: Union[AzureSQLConnection, MssqlConnection]) -
Build the connection URL
"""

if connection.authenticationMode:
if (
hasattr(connection.authenticationMode, "authentication")
and connection.authenticationMode.authentication is not None
):
connection_string = f"Driver={connection.driver};Server={connection.hostPort};Database={connection.database};"
connection_string += f"Uid={connection.username};"
if (
Expand Down

0 comments on commit 1971d8b

Please sign in to comment.