Datastax - 不支持事务
我已经安装了Cassandra ODBC驱动程序,并且已经安装了DSN。 虽然试图如下Datastax - 不支持事务
**conn = pyodbc.connect('DSN=Sample DataStax Cassandra DSN;UID=***;PWD=***;autocommit=True')**
我得到的错误
pyodbc.Error: ('HYC00', '[HYC00] [DataStax][ODBC] (11470) Transactions are not supported. (11470) (SQLSetConnnectAttr(SQL_ATTR_AUTOCOMMIT))')
连接缺少什么我在这里?
可能试图设置autocommit
值是触发问题。卡桑德拉没有交易,所以我猜测,司机作家想明确表示autocommit
在卡桑德拉是不可能的。
所以我会删除autocommit
参数。
即使在删除自动提交后,我也会得到相同的错误 – user3665224
With set at autocommit? – RussS
有和没有设置,同样的错误 – user3665224
通过http://docs.datastax.com/en/developer/odbc-driver/doc/阅读!此外,如果您完全可以避免它,请避免使用odbc驱动程序并使用本机驱动程序。它永远不会远程工作。 –