-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
select(distinct=...) may produce faulty sql for sqlite #316
Comments
Searching about this, I discover that sqlite don't has DISTINCT ON feature. How to proceed? |
@niphlod @ilvalle @mdipierro any ideas? |
This - and others - is the fruit of allowing sintaxes on a per-backend basis.
If specific-backend functionality has to be retained, DAL won't be the "universal adapter" that the docs point to (i.e. develop on postgresql, deploy on mysql, spun another instance on sqlite). And if we retain specific functionality, there should be a clear matrix of backend/capabilities |
@niphlod Ok, so we should schedule a discussion about this so that we include this in the refactoring of the adapters I've planned for the parsing topic.. |
@niphlod Damn, I ended the refactoring and forgotten this. We should re-start a discussion. |
start away, my previous semi-detailed comment pretty much lays every path that can be taken. |
This one works:
But the other option given in the book does not:
I didn't test it with other DB engines since I don't currently have one installed.
Related to web2py/web2py#1129
The text was updated successfully, but these errors were encountered: