We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This one works:
In [45]: db().select(db.player.country, distinct = True) Out[45]: <Rows (40)> In [46]: db._lastsql Out[46]: 'SELECT DISTINCT player.country FROM player;'
But the other option given in the book does not:
In [47]: db().select(db.player.country, distinct = db.player.country) OperationalError: near "ON": syntax error In [48]: db._lastsql Out[48]: 'SELECT DISTINCT ON (player.country) player.country FROM player;'
I didn't test it with other DB engines since I don't currently have one installed.
The text was updated successfully, but these errors were encountered:
select(distinct=...)
@gi0baro I think it's pydal related.
Sorry, something went wrong.
@cassiobotaro yep seems to me too. Can you open up an issue on pyDAL?
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: