Skip to content
Snippets Groups Projects

Make deleting with optimistic locking respect NULL

Merged username-removed-423915 requested to merge fix-optimistic-locking-for-destroy into master

Make deleting with optimistic locking respect NULL

For now deleting with optimistic locking is broken when lock_version is still NULL, because Rails would try to delete with lock_version = 0 while in the database the column is still NULL.

The monkey patches would force Rails just pass whatever in the column, and stop Rails from casting NULL into 0 when the value is read from database.

Closes #24766 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading