-
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: support for RETURNING * #4647
Conversation
Haven't reviewed the implementation yet, will do that this afternoon. Glad to see this fixed, though! Reviewed 4 of 6 files at r1. sql/logic_test.go, line 555 [r1] (raw file): sql/testdata/insert, line 362 [r1] (raw file): sql/testdata/update, line 190 [r1] (raw file): sql/testdata/update, line 197 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: 4 of 6 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. sql/logic_test.go, line 555 [r1] (raw file):
sql/testdata/insert, line 362 [r1] (raw file): Comments from the review on Reviewable.io |
ee5b48f
to
db75008
Compare
LGTM Reviewed 5 of 6 files at r1, 1 of 1 files at r2. Comments from the review on Reviewable.io |
Reviewed 2 of 6 files at r1, 1 of 1 files at r2. sql/logic_test.go, line 555 [r1] (raw file): sql/returning.go, line 38 [r1] (raw file): sql/returning.go, line 53 [r1] (raw file): sql/select.go, line 373 [r1] (raw file): nit: golint doesn't care because this isn't exported, but for consistency please start the comment with the function name. sql/select.go, line 378 [r1] (raw file): sql/select.go, line 379 [r1] (raw file): sql/select.go, line 399 [r1] (raw file):
sql/testdata/insert, line 362 [r1] (raw file): Comments from the review on Reviewable.io |
LGTM Review status: all files reviewed at latest revision, 8 unresolved discussions. Comments from the review on Reviewable.io |
Wait please add a test using Prepare as well. The lesson learned with #4610 is that prepare != execute. Review status: all files reviewed at latest revision, 7 unresolved discussions. Comments from the review on Reviewable.io |
I can't until #4635 is merged Review status: all files reviewed at latest revision, 7 unresolved discussions. sql/select.go, line 379 [r1] (raw file): sql/testdata/insert, line 362 [r1] (raw file): Comments from the review on Reviewable.io |
db75008
to
b74d3be
Compare
LGTM Review status: 2 of 9 files reviewed at latest revision, 9 unresolved discussions. sql/select.go, line 382 [r2] (raw file): sql/select.go, line 384 [r2] (raw file): Comments from the review on Reviewable.io |
Reviewed 7 of 7 files at r3. sql/select.go, line 379 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 4 unresolved discussions. sql/select.go, line 379 [r1] (raw file): sql/select.go, line 382 [r2] (raw file): Comments from the review on Reviewable.io |
b74d3be
to
4a25a46
Compare
This change adds support for `RETURNING *` in inserts and deletes. For updates we currently only expand the updated columns; this is related to an existing problem (we can't return other columns even explicitly, cockroachdb#4368). Fixes cockroachdb#4593.
sql: support for RETURNING *
Review status: 8 of 9 files reviewed at latest revision, 4 unresolved discussions. sql/select.go, line 379 [r1] (raw file): Comments from the review on Reviewable.io |
This change adds support for RETURNING * in inserts and deletes. For updates we
currently only expand the updated columns; this is related to an existing
problem (we can't return other columns even explicitly; filed #4645).
Fixes #4593.
@knz @mjibson