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

Fix field typecast and drop Boolean field class #897

Merged
merged 15 commits into from
Oct 4, 2021
Merged

Conversation

mvorisek
Copy link
Member

@mvorisek mvorisek commented Oct 2, 2021

This fixes several bugs and always invoke DBAL typecast on non-generic/non-standard DBAL types.

Fixes several bugs like value of different type than string was casted to null which was wrong for types like text. There should be minimal hardcoded type specific handling.

BC break:

We also drop Boolean field class as it provided non-standard enum behaviour which should be provided by a custom DBAL type if really needed.

@mvorisek mvorisek added the bug label Oct 2, 2021
@mvorisek mvorisek added the RTM label Oct 2, 2021
@mvorisek mvorisek force-pushed the fix_null_type_norm branch 3 times, most recently from 28e97a5 to 276f116 Compare October 2, 2021 02:54
@mvorisek mvorisek changed the title Simplify field value normalization/typecast Simplify field value typecast and drop Boolean Field class Oct 2, 2021
@mvorisek mvorisek marked this pull request as ready for review October 2, 2021 02:56
@mvorisek mvorisek changed the title Simplify field value typecast and drop Boolean Field class Simplify field typecast and drop Boolean field class Oct 2, 2021
@mvorisek mvorisek changed the title Simplify field typecast and drop Boolean field class Fix field typecast and drop Boolean field class Oct 2, 2021
@mvorisek mvorisek force-pushed the fix_null_type_norm branch 4 times, most recently from 5f2d4ef to fedfe4e Compare October 2, 2021 17:14
Copy link
Collaborator

@abbadon1334 abbadon1334 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

2 participants