Sqlalchemy 1.1.10 oracle connection error

I run this code to connect to an Oracle database:

engine = sqlalchemy.create_engine("oracle://user:password@dsn")
engine.execute("select 1 from dual")

I get an error: 'twophase' is an invalid keyword argument for this function.

I am using cx_oracle 6.0b1 and SQLAlchemy 1.10. When I used cx_oracle 5.2.1 and SQLAlchemy 1.1.5, the code worked

Any idea what causes this now?

+4
source share
1 answer

Solved - this is an open problem with sqlalchemy, will be solved in the next version

+3
source

Source: https://habr.com/ru/post/1677739/


All Articles