gpt4 book ai didi

python - openerp中的发票

转载 作者:搜寻专家 更新时间:2023-10-30 20:20:09 24 4
gpt4 key购买 nike

为什么会出现这个错误?

 ProgrammingError: operator does not exist: integer = boolean
LINE 1: select name, model from ir_ui_view where (id=false or inheri...
^
HINT: No operator matches the given name and argument type(s).
You might need to add explicit type casts.

最佳答案

您正在尝试将整数与 bool 值进行比较(如错误所示)。

因为这是 SQL 0(数字)不等于 false( bool 类型)。

您需要明确地给它一个数字 ID 或过滤 NULL(取决于表的架构)。

关于python - openerp中的发票,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10223244/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com