Skip to content

Commit 3e8786f

Browse files
committed
roachtest: fix schema change statement in mixed version test
The test was executing a schema change statement that doesn't succeed, since ON UPDATE expressions can't reference other columns. Release note: None
1 parent bb1c098 commit 3e8786f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/roachtest/tests/mixed_version_job_compatibility_in_declarative_schema_changer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func executeSupportedDDLs(
118118
`TRUNCATE testdb.testsc.t3`,
119119
`ALTER TABLE testdb.testsc.t2 RENAME TO t2_renamed`,
120120
`ALTER TABLE testdb.testsc.t2_renamed RENAME TO t2`,
121-
`ALTER TABLE testdb.testsc.t2 ALTER COLUMN j SET ON UPDATE j + 1`,
121+
`ALTER TABLE testdb.testsc.t2 ALTER COLUMN j SET ON UPDATE 1`,
122122
`ALTER TABLE testdb.testsc.t2 RENAME COLUMN k TO k_renamed`,
123123
`ALTER TABLE testdb.testsc.t2 RENAME COLUMN k_renamed TO k`,
124124
}

0 commit comments

Comments
 (0)