We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c8ac72 commit f94fc02Copy full SHA for f94fc02
src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
@@ -238,22 +238,7 @@ public function compileDelete(Builder $query)
238
239
return isset($query->joins)
240
? $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}");
+ : parent::compileDelete($query);
257
}
258
259
/**
0 commit comments