henriquebastos / django-aggregate-if

Conditional aggregates for Django queries, just like the famous SumIf and CountIf in Excel.
MIT License
138 stars 17 forks source link

Postgres bool issue #2

Closed iurisilvio closed 11 years ago

iurisilvio commented 11 years ago

It was reported in freedomsponsors repository (https://github.com/freedomsponsors/www.freedomsponsors.org/pull/120). Postgres does not support bool/int comparison without explicit cast.

This pull request solve the issue. I didn't tested it with MySQL, but Travis will do it.