Skip to content

fix: make orphaned value repair query cursor compatible across Nextcloud versions#84

Merged
vitormattos merged 5 commits intomainfrom
fix/repair-fetch-column-compat
Apr 15, 2026
Merged

fix: make orphaned value repair query cursor compatible across Nextcloud versions#84
vitormattos merged 5 commits intomainfrom
fix/repair-fetch-column-compat

Conversation

@vitormattos
Copy link
Copy Markdown
Member

@vitormattos vitormattos commented Apr 14, 2026

Summary

  • replace fetchFirstColumn() usage in field-value mapper with fetchAll(\PDO::FETCH_COLUMN) for broader DB cursor compatibility
  • keep behavior identical by still returning ordered distinct user UIDs as strings
  • add a dedicated unit test to lock compatibility behavior and prevent regressions

Problem

Running occ maintenance:repair could fail at the "Repair orphaned profile field values" step with:

Call to undefined method OC\\DB\\ResultAdapter::fetchFirstColumn()

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos merged commit 76c0b7e into main Apr 15, 2026
21 of 22 checks passed
@vitormattos vitormattos deleted the fix/repair-fetch-column-compat branch April 15, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant