-
Notifications
You must be signed in to change notification settings - Fork 566
Closed
Description
Environment
- Python: 3.10
- pyodbc: 4.0.38
- OS: Win64 (same issue in Linux when running as Azure Python Function)
- DB: Azure SQL
- driver: ?
Issue
Get a none-defined error (python crashes)
Code works in 4.0.35 and before. Stopped working after updating to 4.0.38. Works again after downgrading to 4.0.35.
---Some test code that reproduces it for me:
connection_string = os.environ["SQL_CONNECTION_STRING"]
with pyodbc.connect(connection_string) as conn:
cursor = conn.cursor()
cursor. Execute("SELECT TOP 1 * FROM table")
logging.info("Executed query")
row = cursor.fetchone()
#loggin the row data
logging.info("Fetched row")
logging.info(f"Row: {row}")
Error: Language Worker Process exited. Pid=1516. / python exited with code -1073741819 (0xC0000005).
If running above without fetchone() no issues.
My first ever "bug report". Apologies if it is not according to the standard. Done my best to make it useful.
Metadata
Metadata
Assignees
Labels
No labels