new boolean feature not working in ORM

Issue #3013 resolved
Mike Bayer repo owner created an issue
(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)

  1. Mike Bayer reporter
    • 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 #3013 re: #2804

    → <<cset 2e5c8913a8e1>>

  2. Log in to comment