Skip to content

Fix insertion of default values broken since #85#121

Merged
ocharles merged 1 commit intomasterfrom
insert-values
Jul 17, 2021
Merged

Fix insertion of default values broken since #85#121
ocharles merged 1 commit intomasterfrom
insert-values

Conversation

@shane-circuithub
Copy link
Copy Markdown
Contributor

@shane-circuithub shane-circuithub commented Jul 16, 2021

When printing the SQL, we analyse the PrimExprs and PrimQuery to detect the case where rows is set to rows = values _ and, if so, we output a bare VALUES instead of a SELECT, because DEFAULT is only syntactically valid in a bare VALUES clause.

When printing the SQL, we analyse the `PrimExpr`s and `PrimQuery` to detect the case where `rows` is set to `rows = values _` and, if so, we output a bare `VALUES` statement instead of a `SELECT`, because `DEFAULT` is only syntactically valid in a bare `VALUES` clause.
@shane-circuithub shane-circuithub changed the title Fix insertion of default values since broken by #85 Fix insertion of default values broken since #85 Jul 16, 2021
@ocharles ocharles merged commit add7e77 into master Jul 17, 2021
@ocharles ocharles deleted the insert-values branch July 17, 2021 08:47
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.

2 participants