Skip to content
Snippets Groups Projects

Fixes broken MySQL migration for retried

Merged Kamil Trzcińśki requested to merge fix-retried-for-mysql into master

What does this MR do?

Fixes broken MySQL migration for retried

Mysql2::Error: Table 'ci_builds' is specified twice, both as a target for 'UPDATE' and as a separate source for data: UPDATE ci_builds SET retried = ((SELECT MAX(ci_builds2.id)

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/32647

This is slow, as this does create the temporary table and then updates whole retried.

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
Please register or sign in to reply
Loading