From 96b006d4be7bf63d1cd154a31b1009b27f2bcdfb Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Wed, 17 Apr 2019 09:53:10 +0200 Subject: [PATCH] Postgresql does not support multiple table in delete see https://www.postgresql.org/docs/10/sql-delete.html Introduced in https://github.com/glpi-project/glpi/pull/5491 --- src/Glpi/Database/AbstractDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Glpi/Database/AbstractDatabase.php b/src/Glpi/Database/AbstractDatabase.php index 98ae1c55860..d5717ea6b8a 100644 --- a/src/Glpi/Database/AbstractDatabase.php +++ b/src/Glpi/Database/AbstractDatabase.php @@ -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);