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

Parser doesn't support derived column lists in MERGE #11050

Closed
lukaseder opened this issue Nov 30, 2020 · 0 comments
Closed

Parser doesn't support derived column lists in MERGE #11050

lukaseder opened this issue Nov 30, 2020 · 0 comments

Comments

@lukaseder
Copy link
Member

My intuition is this should probably parse (e.g. in SQL Server), but doesn't:

MERGE INTO balance
USING (
  VALUES (1, 2.50), (2, 3.50), (13, 8.30)
) AS s (i, b)
ON balance.id = s.i 
AND balance.balance = s.b
WHEN MATCHED THEN UPDATE SET balance = b

The error is:

Keyword 'ON' expected: [4:8] ...
  VALUES (1, 2.50), (2, 3.50), (13, 8.30)
) AS s [*](i, b)
ON balance.id = s.i 
AND balance.balance = s.b
WHEN MATCHED THEN UPDATE S...

From https://stackoverflow.com/a/62879490/521799

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant