diff options
author | Mátyás Jani <jzombi@gmail.com> | 2021-08-17 15:10:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 15:10:38 +0200 |
commit | 1018eb441117274a790e03456ddbe7cf12848b20 (patch) | |
tree | 0ab5f2c5cd4623f0769713e49bf63d835b83d6c8 /lib/private/Comments | |
parent | 0edfb24f143e666cf5a716e97bad2a82e67cc66b (diff) | |
download | nextcloud-server-1018eb441117274a790e03456ddbe7cf12848b20.tar.gz nextcloud-server-1018eb441117274a790e03456ddbe7cf12848b20.zip |
Fix SQL type error
Fixing the following SQL error encountered with PostgreSQL:
SQLSTATE[42883]: Undefined function: 7 ERROR:
No operator matches the given name and argument types. You might need to add explicit type casts.
This prevented the Nextcloud apps/files page to show the files and directories. See #27881
Diffstat (limited to 'lib/private/Comments')
-rw-r--r-- | lib/private/Comments/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Comments/Manager.php b/lib/private/Comments/Manager.php index b20e028dcab..21caf6823f8 100644 --- a/lib/private/Comments/Manager.php +++ b/lib/private/Comments/Manager.php @@ -656,7 +656,7 @@ class Manager implements ICommentsManager { $unreadComments = array_fill_keys($objectIds, 0); foreach (array_chunk($objectIds, 1000) as $chunk) { - $query->setParameter('ids', $chunk, IQueryBuilder::PARAM_INT_ARRAY); + $query->setParameter('ids', $chunk, IQueryBuilder::PARAM_STR_ARRAY); $result = $query->executeQuery(); while ($row = $result->fetch()) { |