Skip to content

Conversation

kevinburke1
Copy link
Contributor

Previously we only populated the CTE field if the outer query was
a SELECT, but there's no reason you can't use a CTE with an UPDATE.

Fixes #267.

kevinburke1 and others added 2 commits January 12, 2020 18:21
Previously we only populated the CTE field if the outer query was
a SELECT, but there's no reason you can't use a CTE with an UPDATE.

Fixes sqlc-dev#267.
@kyleconroy kyleconroy merged commit 65c5de3 into sqlc-dev:master Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"UPDATE ... FROM" does not work with CTE
2 participants