Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap doctrine exceptions on IQueryBuilder::execute #38439

Closed
wants to merge 1 commit into from

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented May 24, 2023

While the method is deprecated it is still used in tons of places especially in server, and the annotation for throwing a OCP\DB\Exception was wrong for a long time. This PR aims to wrap the \Doctrine\DBAL\Exception that is actually thrown in a OCP\DB\Exception as it is already done for executeQuery and executeStatement.

Since this is bringing the implementation up to date with the alerady existing php doc comments I wouldn't consider this breaking but I could imagine all kind of issues showing up, therefore I opened as a backport fix for 27 and below #38440

Let's see what CI thinks about this

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr force-pushed the bugfix/noid/wrap-execute-exception branch from edbb095 to 66fdd03 Compare May 24, 2023 15:05
@juliusknorr juliusknorr changed the title bugfix/noid/wrap execute exception Wrap doctrine exceptions on IQueryBuilder::execute May 24, 2023
@ChristophWurst
Copy link
Member

I think I did that but had to revert. This is tricky.

@ChristophWurst
Copy link
Member

#26182

@juliusknorr
Copy link
Member Author

Ok, then let me close this as we're also pushing the backported fix to master with #38478 for now.

@ChristophWurst ChristophWurst deleted the bugfix/noid/wrap-execute-exception branch May 30, 2023 09:27
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.

2 participants