Skip to content
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

Support select distinct with multiple columns #243

Open
kiru opened this issue Jul 10, 2020 · 0 comments
Open

Support select distinct with multiple columns #243

kiru opened this issue Jul 10, 2020 · 0 comments

Comments

@kiru
Copy link

kiru commented Jul 10, 2020

SQLite does support selects with multiple joins, but with ecto I get an exception:

An exception is thrown at this place:

raise ArgumentError, "DISTINCT with multiple columns is not supported by SQLite"

Is this just a not-implemented case?

What is the return value of the distinct method? (I am not that familiar with the codebase)

edit:
It seems some select statement with distinct works. Can anyone explain this case?

https://github.com/elixir-sqlite/sqlite_ecto2/blob/master/test/sqlite_ecto_test.exs#L203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant