You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into an issue when I was attempting to use this with multiple databases (MS sql server & postgresql) Whenever I would run a query on the sql server, followed by one on postgres - the postgresql one would fail with DatabaseWrapper has no attribute supports_mars
I traced this back to a method (_cursor_iter) inside of pyodbc/compile.py which appeared to be running on each database connection, including the postgresql one.
Adding a simple @ line 84:
if not hasattr(cursor.db, "supports_mars"):
cursor.db.supports_mars = False;
solves the issue.
The text was updated successfully, but these errors were encountered:
Thank you for reporting and sorry for inconvenience. I have made the fix for this and pushed it to PyPI. Let me know if you still see the same error after upgrading django-pyodbc-azure to the latest version.
Ran into an issue when I was attempting to use this with multiple databases (MS sql server & postgresql) Whenever I would run a query on the sql server, followed by one on postgres - the postgresql one would fail with
DatabaseWrapper has no attribute supports_mars
I traced this back to a method (
_cursor_iter
) inside ofpyodbc/compile.py
which appeared to be running on each database connection, including the postgresql one.Adding a simple @ line 84:
solves the issue.
The text was updated successfully, but these errors were encountered: