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 force-pushed the fix_null_type_norm branch from 52cd185 to 31b647c Compare October 2, 2021 01:31
@mvorisek mvorisek added the RTM label Oct 2, 2021
@mvorisek mvorisek requested a review from DarkSide666 October 2, 2021 01:32
@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 force-pushed the fix_null_type_norm branch from 276f116 to 7bfad93 Compare October 2, 2021 11:03
@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 force-pushed the fix_null_type_norm branch from 7bfad93 to 1dd4d38 Compare October 2, 2021 11:05
@mvorisek mvorisek force-pushed the fix_null_type_norm branch from 1dd4d38 to 7388b60 Compare October 2, 2021 11:19
@mvorisek mvorisek force-pushed the fix_null_type_norm branch from 334f233 to ae1e229 Compare October 2, 2021 11:39
@mvorisek mvorisek force-pushed the fix_null_type_norm branch from e5ab1f9 to 3e8e62e Compare October 2, 2021 13:52
@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
@mvorisek mvorisek force-pushed the fix_null_type_norm branch from fedfe4e to eb778d9 Compare October 3, 2021 00:14
@mvorisek mvorisek force-pushed the fix_null_type_norm branch from bb8da62 to 42840ee Compare October 3, 2021 18:07
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

@mvorisek mvorisek merged commit 09187a5 into develop Oct 4, 2021
@mvorisek mvorisek deleted the fix_null_type_norm branch October 4, 2021 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants