本文介绍了pypy:位置和命名的绑定不能混合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在,每次django都会尝试执行任何sql,我得到:
I've successfully installed cx_Oracle on pypy using official patch.
我已经使用官方补丁成功安装了cx_Oracle
Now, everytime, django tries to execute any sql, I'm getting:
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任何人都可以告诉我这是什么意思,我做错了什么?
Can anyone tell me what that means and what am I doing wrong?
推荐答案这是一个错误报告做错了什么),而不是一个问题,因此应该去 bugs.pypy 而不是这里。
This is a bug report (you're unlikely doing anything wrong), not a question and as such should go to bugs.pypy and not here.
那就是说,pypy的oracle模块并没有那么好维护。欢迎捐款。
That said, pypy's oracle module is not all that well maintained. Contributions welcomed.
更多推荐
pypy:位置和命名的绑定不能混合
发布评论