Skip to content

Commit

Permalink
fix 8.0.28 support
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo committed Feb 5, 2024
1 parent 9411e18 commit bdfdc66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/migration/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2610,7 +2610,9 @@ func TestForNonInstantBurn(t *testing.T) {
assert.NoError(t, err)
defer db.Close()
var rowVersions int
err = db.QueryRow(`SELECT total_row_versions FROM INFORMATION_SCHEMA.INNODB_TABLES where name='test/instantburn'`).Scan(&rowVersions)
// In 8.0.28 (which we still have in CI) we need to use instant_cols
// and not total_row_versions.
err = db.QueryRow(`SELECT /*!80029 total_row_versions as */ INSTANT_COLS FROM INFORMATION_SCHEMA.INNODB_TABLES where name='test/instantburn'`).Scan(&rowVersions)
assert.NoError(t, err)
return rowVersions
}
Expand Down

0 comments on commit bdfdc66

Please sign in to comment.