Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Generated SQL queries for count methods don't work when table has a compound primary key #68

Open
jplippi opened this issue Jan 14, 2020 · 0 comments
Labels
bug Something isn't working easy

Comments

@jplippi
Copy link
Contributor

jplippi commented Jan 14, 2020

If the table has a compound primary key made out of two foreign keys, count method is generated as a DISTINCT count, which the gives incorrect amount in this case

@jplippi jplippi added the bug Something isn't working label Jan 14, 2020
@melanke melanke added the easy label Jan 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working easy
Projects
None yet
Development

No branches or pull requests

2 participants