Skip to content

parser: Return error if missing RETURNING#131

Merged
kyleconroy merged 2 commits intomasterfrom
returning-one
Nov 18, 2019
Merged

parser: Return error if missing RETURNING#131
kyleconroy merged 2 commits intomasterfrom
returning-one

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

If a query specifies a return value (:one or :many), require that
statements have a RETURNING clause.

Fixes #121

$ sqlc generate
# package ondeck
query/city.sql:26:1: query "DeleteCity" specifies parameter ":one" without containing a RETURNING clause

If a query specifies a return value (:one or :many), require that
statements have a RETURNING clause.

Fixes #121
@kyleconroy kyleconroy merged commit 6da56ff into master Nov 18, 2019
@kyleconroy kyleconroy deleted the returning-one branch November 18, 2019 20:26
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.

Unhelpful error when specifying :one but not including a RETURNING clause

1 participant