Removed some pgsql useless check

This commit is contained in:
Marcos Zuriaga 2016-10-15 17:55:07 +02:00
parent 2713741eac
commit a327103bc0
No known key found for this signature in database
GPG key ID: 7D15585354D072FF

View file

@ -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;";