【发布时间】:2017-10-23 00:13:41
【问题描述】:
我正在运行此代码以连接到 Oracle 数据库:
engine = sqlalchemy.create_engine("oracle://user:password@dsn")
engine.execute("select 1 from dual")
我收到错误消息:'twophase' is an invalid keyword argument for this function。
我正在使用 cx_oracle 6.0b1 和 SQLAlchemy 1.10。 当我使用 cx_oracle 5.2.1 和 SQLAlchemy 1.1.5 时,代码有效
现在知道是什么原因造成的吗?
【问题讨论】:
-
在你的例子中没有
twophase -
我知道,这使错误消息变得更加陌生
标签: python oracle sqlalchemy cx-oracle