File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -372,22 +372,22 @@ jobs:
372372 odbcinst -q -d
373373 echo ""
374374 echo "Testing basic pyodbc connection (before Django):"
375- python -c "
375+ python -c '
376376import pyodbc
377377import os
378- password = os.environ.get(' TestAppPassword', ' Unknown' )
379- print(f' Using password length : { len(password)}' )
378+ password = os.environ.get(" TestAppPassword", " Unknown" )
379+ print(" Using password length:", len(password))
380380try :
381- conn_str = ' DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;UID=sa;PWD=' + password
381+ conn_str = " DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;UID=sa;PWD=" + password
382382 conn = pyodbc.connect(conn_str, timeout=10)
383383 cursor = conn.cursor()
384- cursor.execute(' SELECT 1' )
384+ cursor.execute(" SELECT 1" )
385385 result = cursor.fetchone()
386- print(f' Direct pyodbc connection successful : { result}' )
386+ print(" Direct pyodbc connection successful:", result)
387387 conn.close()
388388except Exception as e :
389- print(f' Direct pyodbc connection failed : {e}' )
390- "
389+ print(" Direct pyodbc connection failed:", e )
390+ '
391391 env:
392392 TestAppPassword: $(TestAppPassword)
393393 displayName: Debug SQL Server connectivity
You can’t perform that action at this time.
0 commit comments