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

Bad compiled delete query with inner join for PostrgeSql #58

Open
Sanych33 opened this issue Oct 27, 2017 · 1 comment
Open

Bad compiled delete query with inner join for PostrgeSql #58

Sanych33 opened this issue Oct 27, 2017 · 1 comment

Comments

@Sanych33
Copy link

When I add a join to the delete operation (like a "table1___column") for postgreSql, an wrong result query is generated. Like this

DELETE FROM "Table0"
 INNER JOIN "Table1" ON "Table0"."fk" = "Table1"."pk"
 WHERE "Table1"."column" = "something"

Correct query fo this operation like this

DELETE FROM "Table0"
      USING "Table1"
 WHERE "Table0"."fk" = "Table1"."pk" AND "Table1"."column" = "something"
@jlaine
Copy link
Owner

jlaine commented Mar 7, 2018

Would you consider submitting a pull request?

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

No branches or pull requests

2 participants