-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Impossible to save null to nullable boolean field #2580
Comments
This requires a use-case that reveals the issue, at best a test case. |
@deeky666 test exists, but it has incorrect value:
And some discuss here: |
@aivus I remember the issue. I don't see what we can do about it as it seems to be a bug in the PDO driver with emulated prepares. IMO it has to be fixed in PHP. I don't have a solution for this other than disabling emulated prepares. |
Closing as stale and likely unrelated to the DBAL. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It's impossible to save null to nullable boolean field.
PDO::PARAM_BOOL
converts any values totrue/false
.PDO::PARAM_NULL
could be used for this purposeBut I don't see a good approach for this.
It would be great to have
value
inType::getBindingType()
in BooleanType or any other approach.I can prepare PR if we find solution for this.
It was discussed in #632 but solution wasn't found.
The text was updated successfully, but these errors were encountered: