Skip to content

Conversation

@CarlSchwan
Copy link
Member

Summary

Commits best reviewed separately

  • 1st and 3rd commit are about porting from IQueryBuilder::execute to IQueryBuilder::executeStatement and IQueryBuilder::executeQuery
  • 2nd commit is about porting away from UniqueConstraintViolationException which is no longer throw directly by nextcloud but wrapped in a OCP\DB\Exception

Checklist

@CarlSchwan CarlSchwan force-pushed the carl/port-away-execute-lib branch from bd865ec to 496ffce Compare August 26, 2025 15:59
@CarlSchwan CarlSchwan added 3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Aug 27, 2025
@CarlSchwan CarlSchwan force-pushed the carl/port-away-execute-lib branch from 496ffce to 23ea2d8 Compare August 27, 2025 14:03
@CarlSchwan CarlSchwan marked this pull request as ready for review September 1, 2025 18:19
@CarlSchwan CarlSchwan requested review from icewind1991, leftybournes and nfebe and removed request for a team September 1, 2025 18:19
@CarlSchwan CarlSchwan force-pushed the carl/port-away-execute-lib branch from 23ea2d8 to 36e4617 Compare September 2, 2025 08:45
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the one new catch which I don't expect it looks good

Carl Schwan added 4 commits September 2, 2025 11:55
Replace by either executeStatement or executeQuery

Signed-off-by: Carl Schwan <[email protected]>
UniqueConstraintViolationException is no longer throw directly but
instead is now wrapped inside a \OCP\DB\Exception. So check the
exception reason.

Signed-off-by: Carl Schwan <[email protected]>
Replace by either executeStatement or executeQuery

Signed-off-by: Carl Schwan <[email protected]>
These are nowadays also OCP\DB\Exception and if the id is not a numeric
deleting by id is also non working.

Signed-off-by: Carl Schwan <[email protected]>
@CarlSchwan CarlSchwan force-pushed the carl/port-away-execute-lib branch from 36e4617 to 996be0f Compare September 2, 2025 09:56
@CarlSchwan CarlSchwan merged commit d73537d into master Sep 2, 2025
213 of 218 checks passed
@CarlSchwan CarlSchwan deleted the carl/port-away-execute-lib branch September 2, 2025 12:38
@nextcloud-bot nextcloud-bot mentioned this pull request Sep 2, 2025
@kesselb
Copy link
Contributor

kesselb commented Sep 10, 2025

/backport 996be0f c4e6fbd to stable31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants