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
Model.create()
in MySQL does not return null
value when defaultValue
hasn't defined
#14671
Comments
Do I understand correctly that your expectation is that |
note for me (or anyone who wants to pick this up) I think this could be easy to fix: In |
@WikiRik Exactly! My bad for not describing it so clearly. What my expectation is |
No worries, your explanation was fine. Just wanted to double check. As @ephys mentioned it probably is an easy fix. I'll try to check it out over the weekend |
This issue has been automatically marked as stale because it has been open for 14 days without activity. It will be closed if no further activity occurs within the next 14 days. If this is still an issue, just leave a comment or remove the "stale" label. 🙂 |
As can be seen in the linked PR, there are a few things blocking that so this might not get fixed in the short term. |
Issue Creation Checklist
Bug Description
In MySQL, if not provide explicit
defaultValue: null
to the model definition, the created result will not contain the column key.But in PG it work right (with the
null
value in result);Reproducible Example
Here is the link to the SSCCE for this issue:
What do you expect to happen?
What is actually happening?
Environment
Would you be willing to resolve this issue by submitting a Pull Request?
Indicate your interest in the resolution of this issue by adding the 👍 reaction. Comments such as "+1" will be removed.
The text was updated successfully, but these errors were encountered: