inconsitent =0 with boolean type in postgres

Causes codesplosions when using postgres database.