new boolean feature not working in ORM
Issue #3013
resolved
(Pdb) print s.query(TestModel).statement.where(column('x', Boolean()))
SELECT testmodel.id, testmodel.flags
FROM testmodel
WHERE x = 1
(Pdb) print s.query(TestModel).filter(column('x', Boolean())).statement
SELECT testmodel.id, testmodel.flags
FROM testmodel
WHERE x
(Pdb)
Comments (2)
-
reporter -
reporter - changed status to resolved
- Fixes to the newly enhanced boolean coercion in
2804
where the new rules for "where" and "having" woudn't take effect for the "whereclause" and "having" kw arguments of the :func:.select
construct, which is also what :class:.Query
uses so wasn't working in the ORM either. fixes#3013re:#2804
→ <<cset 2e5c8913a8e1>>
- Log in to comment
e.g.
#2804