Skip to content

Commit

Permalink
remove method
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 14, 2017
1 parent 3c8ac72 commit f94fc02
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,22 +238,7 @@ public function compileDelete(Builder $query)

return isset($query->joins)
? $this->compileDeleteWithJoins($query, $table)
: $this->compileDeleteWithoutJoins($query, $table);
}

/**
* Compile a delete query that does not use joins.
*
* @param \Illuminate\Database\Query\Builder $query
* @param string $table
* @param array $where
* @return string
*/
protected function compileDeleteWithoutJoins($query, $table)
{
$where = is_array($query->wheres) ? ' '.$this->compileWheres($query) : '';

return trim("delete from {$table}{$where}");
: parent::compileDelete($query);
}

/**
Expand Down

0 comments on commit f94fc02

Please sign in to comment.