Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BooleanField and NullBooleanField Constraint for firebird 3+ #154

Open
maxirobaina opened this issue May 27, 2024 · 0 comments
Open

BooleanField and NullBooleanField Constraint for firebird 3+ #154

maxirobaina opened this issue May 27, 2024 · 0 comments

Comments

@maxirobaina
Copy link
Owner

maxirobaina commented May 27, 2024

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 ..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant