Fix invalid SQL with boolean filters

Boolean filters are treated as integer (example `SELECT ... WHERE boolean_field_name = [0|1]`). This behaviors is tolerated by Mysql but is not valid SQL and so does not work with some others DBMS like PostgreSQL.