-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
add tests: update on filtered query fails when using subquery #1802
Labels
Comments
A similar issue with filter #1800 |
henadzit
changed the title
regression: update on filtered query fails when using subquery
add tests: update on filtered query fails when using subquery
Dec 6, 2024
henadzit
added
enhancement
New feature or request
and removed
bug
Something isn't working
labels
Dec 8, 2024
Invisi
added a commit
to Invisi/tortoise-orm
that referenced
this issue
Jan 3, 2025
Invisi
added a commit
to Invisi/tortoise-orm
that referenced
this issue
Jan 4, 2025
7 tasks
henadzit
pushed a commit
that referenced
this issue
Jan 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The original bug was fixed but we obviously lack tests that would have prevented the issue. This issue can be resolved by adding more tests covering usage of
Subquery
with updates. This might be a good first time issue.Original bug report
Describe the bug
As of #1777 / 7f077c1 and version 0.22.1, update queries using
tortoise.expressions.Subquery
in filters fail with the following exceptions:To Reproduce
Run the following sample code under
tortoise-orm==0.22.1
:Expected behavior
The generated query should be correct, rows matching the filter should be updated.
Additional context
The good news is that it's fixed in #1797, however I cannot say why or how that specific PR fixes the underlying issue.
The text was updated successfully, but these errors were encountered: