From a327103bc0001287424addd8f5bf28a160e329ed Mon Sep 17 00:00:00 2001 From: Marcos Zuriaga Date: Sat, 15 Oct 2016 17:55:07 +0200 Subject: [PATCH] Removed some pgsql useless check --- lib/Db/ShareRequestMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/ShareRequestMapper.php b/lib/Db/ShareRequestMapper.php index f43f1294..aa27b090 100644 --- a/lib/Db/ShareRequestMapper.php +++ b/lib/Db/ShareRequestMapper.php @@ -43,7 +43,7 @@ class ShareRequestMapper extends Mapper { * @return ShareRequest[] */ public function getRequestsByItemGuidGroupedByUser($item_guid){ - if (strtolower($this->db->getDatabasePlatform()->getName()) === 'mysql' || strtolower($this->db->getDatabasePlatform()->getName()) == 'pgsql'){ + if (strtolower($this->db->getDatabasePlatform()->getName()) === 'mysql'){ $this->db->executeQuery("SET sql_mode = '';"); } $q = "SELECT *, target_user_id FROM *PREFIX*" . self::TABLE_NAME . " WHERE item_guid = ? GROUP BY target_user_id;";