You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @lihe07, thanks for bring this up to the spotlight. I think this is something that we need to "fix".
IMO when updating / saving a existing ActiveModel with all its value being Unchanged or NotSet, the expected behaviour should be no-op. That's to skip firing any SQL statement.
To achieve that we need to check the values field of sea_query::UpdateStatement is empty at executor/update.rs.
Discussed in #1371
Originally posted by lihe07 January 8, 2023
I have a ActiveModel like this;
The SQL query for saving this looks like that:
And that leads to a syntax error (empty set section).
I'm considering whether it's sea-orm's task to determine if the ActiveModel does noting or not.
The text was updated successfully, but these errors were encountered: