pypy:位置和命名的结合不能混(pypy: positional and named binds

2019-10-18 08:04发布

我一直在使用官方补丁上pypy成功安装cx_Oracle。

现在,每次,Django会尝试执行任何SQL,我得到:

MyTable.objects.using("ora").count()

Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/user/.virtualenvs/pypy_chembl_migration/site-packages/django/db/models/query.py", line 351, in count
return self.query.get_count(using=self.db)
File "/home/user/.virtualenvs/pypy_chembl_migration/site-packages/django/db/models/sql/query.py", line 418, in get_count
number = obj.get_aggregation(using=using)[None]
File "/home/user/.virtualenvs/pypy_chembl_migration/site-packages/django/db/models/sql/query.py", line 384, in get_aggregation
result = query.get_compiler(using).execute_sql(SINGLE)
File "/home/user/.virtualenvs/pypy_chembl_migration/site-packages/django/db/models/sql/compiler.py", line 818, in execute_sql
cursor.execute(sql, params)
File "/home/user/.virtualenvs/pypy_chembl_migration/site-packages/django/db/backends/oracle/base.py", line 675, in execute
return self.cursor.execute(query, self._param_generator(params))
DatabaseError: positional and named binds cannot be intermixed

谁能告诉我这是什么意思和我究竟做错了什么?

Answer 1:

这是一个错误报告(你不会做错什么),而不是一个问题,因此应该去http://bugs.pypy.org而不是在这里。

这就是说,pypy的甲骨文模块是不是所有的很好的维护。 捐款欢迎。



文章来源: pypy: positional and named binds cannot be intermixed