1

我已经使用官方补丁在 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

谁能告诉我这意味着什么,我做错了什么?

4

1 回答 1

0

这是一个错误报告(您不太可能做错任何事情),不是问题,因此应该转到http://bugs.pypy.org而不是这里。

也就是说,pypy 的 oracle 模块并没有得到很好的维护。欢迎投稿。

于 2013-07-05T17:30:53.483 回答