fix(compiler): Set RV for TargetList items on updates#1252
Merged
kyleconroy merged 3 commits intosqlc-dev:mainfrom Nov 6, 2021
Merged
fix(compiler): Set RV for TargetList items on updates#1252kyleconroy merged 3 commits intosqlc-dev:mainfrom
kyleconroy merged 3 commits intosqlc-dev:mainfrom
Conversation
Contributor
Author
|
Sure, but it will take a few days before I have time |
kyleconroy
requested changes
Nov 1, 2021
Collaborator
kyleconroy
left a comment
There was a problem hiding this comment.
Can you please add at least one test case? There are many examples in the internal/endtoend/testdata directory.
Contributor
Author
|
Sorry, yes. I'll do it tomorrow.
Andreas
…On Mon, Nov 1, 2021, 16:06 Kyle Conroy ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Can you please add at least one test case? There are many examples in the
internal/endtoend/testdata directory.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1252 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFRQVJR456P3DD7KFDDGU3UJ2UIJANCNFSM5G4W26XA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Collaborator
|
@andreasgan Sorry for the second message! I realized that I hadn't posted the comment as a review. No rush, seriously. |
Contributor
Author
No worries. Tests added now. |
kyleconroy
approved these changes
Nov 6, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, thank you for this library!
I stumbled upon a bug with updates not working on
updatequeries with multiple tables. It gave an errorcolumn does not existwhich was because ref.rv was nil.This PR fixes this by looping through the TargetList and setting the ref.rv from the
Relation, similarly to what inserts already do. Here's the relevant AST: