pypy:位置和命名的绑定不能混合

编程入门 行业动态 更新时间:2024-10-23 11:24:57
本文介绍了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:位置和命名的绑定不能混合

本文发布于:2023-10-18 11:12:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1504074.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:绑定   位置   pypy

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!