-
Notifications
You must be signed in to change notification settings - Fork 3.9k
sql: enable use of multi-column foreign keys #8033
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
Conversation
Reviewed 5 of 5 files at r1, 2 of 2 files at r2, 3 of 3 files at r3. sql/create.go, line 431 [r2] (raw file):
nit: s/a column isn't/no columns are/ sql/create.go, line 433 [r2] (raw file):
this check is redundant with one below. is the error message better enough to keep the duplication? sql/create.go, line 439 [r2] (raw file):
It might be worth moving this block to be a method on TableDescriptor sql/create.go, line 478 [r2] (raw file):
this feels more likely to conflict than the old version, what happens if it does? sql/create.go, line 508 [r2] (raw file):
Use backticks instead of escaping these, here and throughout this function sql/create.go, line 336 [r3] (raw file):
can this be moved to ValidateTable? sql/parser/create.go, line 459 [r1] (raw file):
Combine this with the above WriteString sql/testdata/fk, line 306 [r3] (raw file):
fwiw, I need this for interleaved. fast follow? Comments from Reviewable |
Review status: 0 of 8 files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. sql/create.go, line 431 [r2] (raw file):
|
Review status: 0 of 8 files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. sql/create.go, line 336 [r3] (raw file):
|
Still not hooked up to any codepaths that would pass it more than a single column though
Review status: 0 of 8 files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. sql/parser/create.go, line 459 [r1] (raw file):
|
Review status: 0 of 8 files reviewed at latest revision, 8 unresolved discussions, all commit checks successful. sql/create.go, line 478 [r2] (raw file):
|
Review status: 0 of 8 files reviewed at latest revision, 8 unresolved discussions, some commit checks pending. sql/create.go, line 336 [r3] (raw file):
|
Fixes #7866
This change is