-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: parse VALIDATE commands, implement VALIDATE of CHECK #9152
Conversation
Reviewed 4 of 4 files at r1, 7 of 7 files at r2, 2 of 2 files at r3. sql/alter_table.go, line 251 [r2] (raw file):
nit: "details" could have a better name. maybe "constraint"? sql/alter_table.go, line 261 [r3] (raw file):
pull this all out into a method? sql/alter_table.go, line 266 [r3] (raw file):
hmm, this does handle the not found case right now, but it still makes me a little uncomfortable to not check for idx == 0 here sql/alter_table.go, line 273 [r3] (raw file):
this is only the public columns, right? you have publicAndNonPublicColumns below sql/alter_table.go, line 275 [r3] (raw file):
woah. very nice sql/alter_table.go, line 276 [r3] (raw file):
i didn't see this limit clause at first. line wrapping here could be improved sql/testdata/alter_table, line 134 [r3] (raw file):
test to validate a constraint that doesn't exist? Comments from Reviewable |
Reviewed 4 of 4 files at r1, 7 of 7 files at r2. sql/alter_table.go, line 266 [r3] (raw file):
|
Review status: all files reviewed at latest revision, 12 unresolved discussions, all commit checks successful. sql/alter_table.go, line 261 [r3] (raw file):
|
Review status: all files reviewed at latest revision, 12 unresolved discussions, all commit checks successful. sql/alter_table.go, line 266 [r3] (raw file):
|
5df3d58
to
8284579
Compare
unused for now (check and fk constraints are always added with validation skipped currently).
Stubs out handling of VALIDATE commands, up to the point of handing off to the the constraint-type specific validation logic.
Review status: 0 of 8 files reviewed at latest revision, 12 unresolved discussions, some commit checks pending. sql/alter_table.go, line 251 [r2] (raw file):
|
Review status: 0 of 8 files reviewed at latest revision, 9 unresolved discussions, all commit checks successful. sql/alter_table.go, line 272 [r3] (raw file):
|
This change is