tortoise.functions.Count() — incorrect calculation when several relations #1623
Replies: 1 comment
-
Everything was found in the documentation, when I read it in the morning with a fresh mind. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure if the following behavior is a problem, so please take a look at the example below to help understand me what a well-written query definition should look like to get the expected result.
Output correct:
When I make one review for User with ID = 2, and call
test_count()
again:Incorrect output:
When I make two review more for User with ID = 2, and call
test_count()
again:Incorrect output:
After that, I change body in
test_count()
to:Output correct:
Change body in
test_count()
to:Output incorrect:
Expected output:
And
Beta Was this translation helpful? Give feedback.
All reactions