Skip to content

Commit

Permalink
Postgresql does not support multiple table in delete
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 7, 2019
1 parent 29c14fd commit befb2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Glpi/Database/AbstractDatabase.php
Expand Up @@ -1197,7 +1197,7 @@ public function buildDelete($table, array &$params, array $where, array $joins =
throw new \RuntimeException('Cannot run an DELETE query without WHERE clause!');
}

$query = "DELETE ". $this->quoteName($table) . " FROM ". $this->quoteName($table);
$query = "DELETE FROM ". $this->quoteName($table);

$it = new DBmysqlIterator($this);
$query .= $it->analyzeJoins($joins);
Expand Down

0 comments on commit befb2a6

Please sign in to comment.