]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: add workaround for oci and limit queries 38054/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Tue, 2 May 2023 09:12:48 +0000 (11:12 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 3 May 2023 21:14:33 +0000 (21:14 +0000)
DBAL uses a helper column "doctrine_rownum" for top-n queries

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/public/AppFramework/Db/QBMapper.php

index 57f4cba2ff51a8dc41fd75136ca34af47675bb63..2809763a088a88ecab0a8007d4ba9b1bd1e2895b 100644 (file)
@@ -318,6 +318,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);
        }