mirror of
https://github.com/nextcloud/passman.git
synced 2024-12-28 19:04:15 +08:00
Fix sqlite bug, hope the mysql problem is not happening on other systems and the sql statement works on all the other systems
This commit is contained in:
parent
c91c9cb6d8
commit
0779d79cca
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ class ShareRequestMapper extends Mapper {
|
|||
* @return ShareRequest[]
|
||||
*/
|
||||
public function getRequestsByItemGuidGroupedByUser($item_guid){
|
||||
$this->db->executeQuery("SET sql_mode = '';");
|
||||
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;";
|
||||
return $this->findEntities($q, [$item_guid]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue