-
Notifications
You must be signed in to change notification settings - Fork 60
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
AUTOCOMMIT not available, but required for not-journaled files #144
Comments
Hello @ajcastany |
sure,
|
I tried with above code and while giving autocommit=True, it was not updating the file because
Now both the above examples are working. Thanks |
the file (db2 term for table) you create has journaling enabled. That code works when it has journaling enabled. You are declaring an "autocommit_engine" but you don't use it, if you try using it you should get: engine object does not have did you copy-paste from chatgpt? |
Hello @ajcastany Seems Like I missed execute method thing, I will try to reproduce the issue Thank You |
Hi, I need to do an insert/update operation on a file that doesn't have journaling enabled. So it gives the following error, you can't use transactions without journaling:
sqlalchemy.exc.ProgrammingError: (ibm_db_dbi.ProgrammingError) ibm_db_dbi::ProgrammingError: Statement Execute Failed: [IBM][CLI Driver][AS] SQL7008N REXX variable "VARSS " contains inconsistent data. SQLSTATE=55019 SQLCODE=-7008
on the docs here: https://docs.sqlalchemy.org/en/20/tutorial/dbapi_transactions.html it mentions that the AUTOCOMMIT can be set as the
isolation_level
on theengine
. However, it gives this error:sqlalchemy.exc.ArgumentError: Invalid value 'AUTOCOMMIT' for isolation_level. Valid isolation levels for ibm_db_sa are RR, REPEATABLE READ, READ STABILITY, CURSOR STABILITY, RS, UNCOMMITTED READ, UR, CS
Is there any way to enable AUTOCOMMIT so i can insert/upsert operations with SqlAlchemy ORM on non-journaled files?
The text was updated successfully, but these errors were encountered: