Skip to content

Commit

Permalink
fix: Make it pass tests again
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed May 25, 2024
1 parent 4041e40 commit 41d9bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/BookmarkMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private function _generateCTE(int $folderId, bool $withSoftDeleted = false) : ar
->selectAlias($baseCase->createFunction($this->getDbType() === 'mysql'? 'cast(0 as UNSIGNED)' : 'cast(0 as BIGINT)'), 'parent_folder')
->selectAlias($baseCase->createFunction($this->getDbType() === 'mysql'? 'cast('.$baseCase->createPositionalParameter(TreeMapper::TYPE_FOLDER).' as CHAR(20))' : 'cast('.$baseCase->createPositionalParameter(TreeMapper::TYPE_FOLDER).' as TEXT)'), 'type')
->selectAlias($baseCase->createFunction($this->getDbType() === 'mysql'? 'cast(0 as UNSIGNED)' : 'cast(0 as BIGINT)'), 'idx')
->selectAlias($baseCase->createFunction('NULL'), 'soft_deleted_at');
->selectAlias($baseCase->createFunction($this->getDbType() === 'mysql'? 'cast(NULL as DATETIME' : 'cast(NULL as timestamp)'), 'soft_deleted_at');

// The first recursive case lists all children of folders we've already found
$recursiveCase = $this->db->getQueryBuilder();
Expand Down

0 comments on commit 41d9bf0

Please sign in to comment.