Skip to content

#1527 DELETE ... RETURNING ...#1528

Merged
wumpz merged 3 commits intoJSQLParser:masterfrom
manticore-projects:#1527_DeleteReturningExpression
May 11, 2022
Merged

#1527 DELETE ... RETURNING ...#1528
wumpz merged 3 commits intoJSQLParser:masterfrom
manticore-projects:#1527_DeleteReturningExpression

Conversation

@manticore-projects
Copy link
Contributor

@manticore-projects manticore-projects commented May 6, 2022

Fixes #1527
Add DELETE... RETURNING ... expression
Simplify INSERT ... RETURNING ... expression
Simply UPDATE ... RETURNING ... expression

Fixes dbeaver/dbeaver#15946

Fixes JSQLParser#1527
Add DELETE... RETURNING ... expression
Simplify INSERT ... RETURNING ... expression
Simply UPDATE ... RETURNING ... expression
According to https://docs.microsoft.com/en-us/sql/t-sql/queries/output-clause-transact-sql?view=sql-server-ver15
Implement Output Clause for INSERT, UPDATE and DELETE
Add Tests according the Microsoft Documentation
@manticore-projects manticore-projects requested a review from wumpz May 7, 2022 17:33
@wumpz wumpz merged commit 4d81521 into JSQLParser:master May 11, 2022
@manticore-projects manticore-projects deleted the #1527_DeleteReturningExpression branch May 12, 2022 10:16
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.

Support "Returning" part of DELETE statement. Confirm dangerous query execution doesn't work when there's a RETURNING clause in a DELETE statement

2 participants