-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support "Returning" part of DELETE statement. #1527
Comments
Thank you for reporting, I respond to the original issue and will (try to) provide a patch. |
manticore-projects
added a commit
to manticore-projects/JSqlParser
that referenced
this issue
May 6, 2022
Fixes JSQLParser#1527 Add DELETE... RETURNING ... expression Simplify INSERT ... RETURNING ... expression Simply UPDATE ... RETURNING ... expression
wumpz
pushed a commit
that referenced
this issue
May 11, 2022
* #1527 DELETE ... RETURNING ... Fixes #1527 Add DELETE... RETURNING ... expression Simplify INSERT ... RETURNING ... expression Simply UPDATE ... RETURNING ... expression * TSQL Output Clause 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 * Appease Codacy/PMD
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
Our user expecting some problem with DELETE statement with returning clause.
dbeaver/dbeaver#15946
Because
delete from t returning *;
statement can't be parsedPlease, add support of RETURNING clause in DELETE statement.
SQL Example
This statement doesn't work.
delete from t returning *;
And Update statement already support returning statement:
update t set a = 1 returning *;
I see that UPDATE supports returning clause, and DELETE statement - don't.
Software Information
The text was updated successfully, but these errors were encountered: