Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#ISOLATION_LEVEL=READ_UNCOMMITTED errors with django.db.utils.Error: ('HY000', '[HY000] [Informix][Informix ODBC Driver][Informix]Transaction not available. (-256) (SQLSetConnectAttr)') #39

Open
wasimwaqia opened this issue Mar 17, 2023 · 0 comments

Comments

@wasimwaqia
Copy link

I had the error (File "/home/developer/myprojects/open/project1/lib/python3.11/site-packages/django_informixdb/base.py", line 256, in get_new_connection
self.connection.set_attr(pyodbc.SQL_ATTR_TXN_ISOLATION,
django.db.utils.Error: ('HY000', '[HY000] [Informix][Informix ODBC Driver][Informix]Transaction not available. (-256) (SQLSetConnectAttr)')
)
when connecting to the stores_demo database on Informix 14.10FC9W1 developer edition
The issue resolved if i comment out the line 'ISOLATION_LEVEL': 'READ_UNCOMMITTED', in the settings.py

I also tried all the option of READ_COMMITTED, READ_UNCOMMITTED, REPEATABLE_READ and SERIALIZABLE before commenting out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant