-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pony.orm.decompiling.DecompileError: Unsupported operation: POP_JUMP_IF_NOT_NONE #725
Comments
I am experiencing the same issue, but in my case I get the |
Same error on Python 3.12:
Here's the snippet: select(md for md in MessageData if md.message is self and (md.user is None or md.user == current_user.user)) |
I encountered this issue as well. I was able to solve it by doing:
I believe it has something to do with how Python evaluates the abstract syntax tree when constructing the sql statement. |
I've encountered this issue, too. Worked around it with if/else, thereby doubling the queries. But I think the devs should take a closer look on this despite. Seems no one cared so far. :/ |
Script Example on Python 3.12 and ponyorm 0.7.19:
Output:
The text was updated successfully, but these errors were encountered: