Skip to content

Commit f94fc02

Browse files
committed
remove method
1 parent 3c8ac72 commit f94fc02

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/Illuminate/Database/Query/Grammars/PostgresGrammar.php

+1-16
Original file line numberDiff line numberDiff line change
@@ -238,22 +238,7 @@ public function compileDelete(Builder $query)
238238

239239
return isset($query->joins)
240240
? $this->compileDeleteWithJoins($query, $table)
241-
: $this->compileDeleteWithoutJoins($query, $table);
242-
}
243-
244-
/**
245-
* Compile a delete query that does not use joins.
246-
*
247-
* @param \Illuminate\Database\Query\Builder $query
248-
* @param string $table
249-
* @param array $where
250-
* @return string
251-
*/
252-
protected function compileDeleteWithoutJoins($query, $table)
253-
{
254-
$where = is_array($query->wheres) ? ' '.$this->compileWheres($query) : '';
255-
256-
return trim("delete from {$table}{$where}");
241+
: parent::compileDelete($query);
257242
}
258243

259244
/**

0 commit comments

Comments
 (0)