-
Notifications
You must be signed in to change notification settings - Fork 132
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
Bug: different behaviour between save(save(x)), and save(find(save(x))) #859
Comments
This is expected as calling We do not track dirty state and we do not insert Another aspect here is that we do only retrieve the generated identifier. Any default values that come from the database aren't transmitted back by the |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
this code
behaves the expected way, while this one:
will generate an update query that tries to set all fields, even untouched null fields.
So imagine you have a
COLUMN c NOT NULL DEFAULT 'bla'
. The first example will correctly leave c to default since it's never touched. Se second example will unexpectedly try to update c and set it to null, and the DB will throw an exception.The text was updated successfully, but these errors were encountered: