Skip to content

BooleanField and NullBooleanField Constraint for firebird 3+  #154

@maxirobaina

Description

@maxirobaina

BooleanField in firebird versions minors to 3 which doesn't suport boolean data type, Its was emulated with a smallint field with a check constraint to alow values just 1 or 0 or NULL if field is NullBooleanField [1]

Since firebird 3 wih bool data type support the contraint is no requiered any more, therefore it is not necessary set the check contraint at table level.

[1] NullBooleanFields was marked as deprecated sice django 4

PS:
In firerbird 3.0.x there are a bug removing a field with check contraint. At least django generated boolean fields with check contraint fails with the message "no current record for fetch operation At trigger ..."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions