Closed
Description
Migrated issue, originally created by MartinH (@dwt)
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.
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
sqlalchemy-bot commentedon Jan 18, 2012
Michael Bayer (@zzzeek) wrote:
wow, somehow I didn't get an email for this ticket, will look soon.
sqlalchemy-bot commentedon Jan 18, 2012
Michael Bayer (@zzzeek) wrote:
OK these two constructs have not been widely published so were somewhat forgotten. In 8c05a3b I moved them to be accessible via sqlalchemy.sql and also got sqlite dialect to render to 0 and 1.
sqlalchemy-bot commentedon Jan 18, 2012
Changes by Michael Bayer (@zzzeek):