sqlalchemy.sql.expression.false() doesn't render to 0 on sqlite

Issue #2368 resolved
‮rekcäH nitraM‮ created an issue

Thus creating a Column('foo', Boolean, server_default=sqlalchemy.sql.expression.false()) will trigger an error as the Boolean type adds a check constraint for 1 or 0 (as on sqlite there are only integers, no booleans).

I've tried sqlalchemy.func.false() too, but that generates the string 'false()' which also breaks.

Comments (3)

  1. Log in to comment