-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.4] Postgres: Grammar for pivot-related DELETE #20062
[5.4] Postgres: Grammar for pivot-related DELETE #20062
Conversation
*/ | ||
protected function compileDeleteWithJoins($query, $table) | ||
{ | ||
$using = ' USING '.collect($query->joins)->map(function ($join) use ($query, &$using_tables) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to use $using_tables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, removed old part of code
@@ -266,7 +266,7 @@ protected function compileDeleteWithoutJoins($query, $table) | |||
*/ | |||
protected function compileDeleteWithJoins($query, $table) | |||
{ | |||
$using = ' USING '.collect($query->joins)->map(function ($join) use ($query, &$using_tables) { | |||
$using = ' USING '.collect($query->joins)->map(function ($join) use ($query) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to have use($query)
as well here.
Nice, thanks! |
Added grammar for DELETE with USES clause