Skip to content
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

RFC-0030 and RFC-0011 DEFAULT VALUES with <insert columns list> bug #95

Open
johnedquinn opened this issue Dec 6, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@johnedquinn
Copy link
Member

According to SQL:1999, it shouldn't be possible to write:

INSERT INTO tbl (a, b, c) DEFAULT VALUES ...;

Since UPSERT/REPLACE is syntactic sugar over a variant of INSERT .. ON CONFLICT ..., then I assume that one should also not be able to write:

UPSERT INTO tbl (a, b, c) DEFAULT VALUES ...;

The INSERT RFC and UPSERT/REPLACE RFC's EBNFs, as written, allow for this. The RFCs don't go into details about what this means with the insert column list when using DEFAULT VALUES -- therefore, it looks like a bug.

The EBNF should probably follow SQL:1999's more closely. See partiql/partiql-lang-kotlin#1666.

@johnedquinn johnedquinn added the bug Something isn't working label Dec 6, 2024
@johnedquinn johnedquinn changed the title RFC-0030 DEFAULT VALUES with <insert columns list> bug RFC-0030 and RFC-0011 DEFAULT VALUES with <insert columns list> bug Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant