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

Support multiple-table syntax of DELETE statement #257

Open
JanVoracek opened this issue Aug 19, 2019 · 0 comments
Open

Support multiple-table syntax of DELETE statement #257

JanVoracek opened this issue Aug 19, 2019 · 0 comments
Labels
bug

Comments

@JanVoracek
Copy link

@JanVoracek JanVoracek commented Aug 19, 2019

Docs: https://dev.mysql.com/doc/refman/8.0/en/delete.html#idm140219041342912

There are two possible forms of multiple-table delete statement (queries based on this tutorial):

  • DELETE t1, t2 FROM t1 INNER JOIN t2 ON t2.ref = t1.id WHERE t1.id = 1
  • DELETE FROM t1, t2 USING t1 INNER JOIN t2 ON t2.ref = t1.id WHERE t1.id = 1;

Looks like the former one is supported but the latter one is not – it ends up with two ParseExceptions.

@williamdes williamdes added the bug label Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.