From f55579e8c85ec3cbc7eb0f00aff562243175bc31 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Thu, 11 Mar 2021 15:53:48 -0600 Subject: [PATCH] Fix rST typo --- lib/sqlalchemy/dialects/mssql/pyodbc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/dialects/mssql/pyodbc.py b/lib/sqlalchemy/dialects/mssql/pyodbc.py index 4bcd2eb1be..9e8b2acda0 100644 --- a/lib/sqlalchemy/dialects/mssql/pyodbc.py +++ b/lib/sqlalchemy/dialects/mssql/pyodbc.py @@ -92,7 +92,7 @@ library. More information about the authentication step can be found in After getting an engine, the credentials need to be sent to ``pyodbc.connect`` each time a connection is requested. One way to do this is to set up an event listener on the engine that adds the credential token to the dialect's connect -call. The following code snippet allows this: +call. The following code snippet allows this:: import struct from sqlalchemy import event @@ -108,7 +108,7 @@ call. The following code snippet allows this: attrs_before[SQL_COPT_SS_ACCESS_TOKEN] = bytes(token_struct) return dialect.connect(*cargs, **cparams) -This can then be used as follows: +This can then be used as follows:: creds = identity.DefaultAzureCredential() # Or any other azure credentials. odbc_str = 'DRIVER={ODBC Driver 17 for SQL Server};DATABASE=myDb;server=my-server.database.windows.net' -- 2.47.3