Skip to content

The Boolean property write to mysql and then read out can not serialize problem #39

@tingruizhang

Description

@tingruizhang

my model entity contains an boolean property like

deleted = db.Column(db.Boolean, default=False)

after a model entity write to mysql, mysql schema the according delete column type is tinyint, so the property 'deleted' in mysql is 0 or 1.

while I read the value of my entity from mysql, the property 'deleted' can not serialized.

I want to learn more from you. thanks.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions