我已经使用官方补丁在 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
谁能告诉我这意味着什么,我做错了什么?