aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-05-02 11:12:48 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2023-05-02 14:26:28 +0200
commiteecdb62e92ec1ccb9d1675ecd402d10c3576f4f7 (patch)
treeaba84d9b08871ee13968ef41e915f31db3b90688 /lib/public/AppFramework
parent08e1bcd2c969bb85c12af8b0286eb8e93b2adbb5 (diff)
downloadnextcloud-server-eecdb62e92ec1ccb9d1675ecd402d10c3576f4f7.tar.gz
nextcloud-server-eecdb62e92ec1ccb9d1675ecd402d10c3576f4f7.zip
fix: add workaround for oci and limit queries
DBAL uses a helper column "doctrine_rownum" for top-n queries Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r--lib/public/AppFramework/Db/QBMapper.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Db/QBMapper.php b/lib/public/AppFramework/Db/QBMapper.php
index cbe3d39d4d7..57b996b2c0f 100644
--- a/lib/public/AppFramework/Db/QBMapper.php
+++ b/lib/public/AppFramework/Db/QBMapper.php
@@ -317,6 +317,7 @@ abstract class QBMapper {
* @since 14.0.0
*/
protected function mapRowToEntity(array $row): Entity {
+ unset($row['DOCTRINE_ROWNUM']); // remove doctrine/dbal helper column
return \call_user_func($this->entityClass .'::fromRow', $row);
}