You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dlurton -- regarding the query for reproducing the issue. It seems that this actually has to do with the mixing-and-matching of the "legacy" INSERT command with the "current" ON CONFLICT clause. The grammar says:
While the grammar says we can mix-and-match the "legacy" and "current" commands/clauses, we actually don't allow it in the visitor. Ideally, this should be expressed more explicitly within our grammar. I spoke to @am357 , and it seems that we are maintaining the "legacy" insert and "legacy" on-conflict clauses for backward-compatibility.
Anyways, this issue is present in main, and I'll leave it out of the scope of this PR.
The ANTLR grammar currently supports mixing and matching of the insert, insertLegacy, onConflict, and onConflictLegacy rules. We should only be supporting:
insert with onConflict
insertLegacy with onConflictLegacy
Proposed Solution
We need to modify this in the grammar
We potentially need to update the AST, but I haven't looked into this very much.
Definition of Done
The inability to parse the mix-and-match.
The text was updated successfully, but these errors were encountered:
Original Comment
@dlurton -- regarding the query for reproducing the issue. It seems that this actually has to do with the mixing-and-matching of the "legacy" INSERT command with the "current" ON CONFLICT clause. The grammar says:
While the grammar says we can mix-and-match the "legacy" and "current" commands/clauses, we actually don't allow it in the visitor. Ideally, this should be expressed more explicitly within our grammar. I spoke to @am357 , and it seems that we are maintaining the "legacy" insert and "legacy" on-conflict clauses for backward-compatibility.
Anyways, this issue is present in
main
, and I'll leave it out of the scope of this PR.Originally posted by @johnedquinn in #1061 (comment)
Further Clarification
The ANTLR grammar currently supports mixing and matching of the
insert
,insertLegacy
,onConflict
, andonConflictLegacy
rules. We should only be supporting:insert
withonConflict
insertLegacy
withonConflictLegacy
Proposed Solution
Definition of Done
The text was updated successfully, but these errors were encountered: