Skip to content

Conversation

@chu121su12
Copy link
Contributor

@chu121su12 chu121su12 commented Jul 14, 2022

When working with multiple databases, when DB::connection($connName)->do() throws, there is no way to show information which connection is causing the exception.

This PR adds connectionName to the QueryException and update the message accordingly.

Edit: the tests failed on unrelated code, so I hope this is OK to be marked ready

@chu121su12 chu121su12 marked this pull request as ready for review July 15, 2022 03:28
@taylorotwell taylorotwell merged commit eb21b5c into laravel:master Jul 19, 2022
@chu121su12 chu121su12 deleted the feat/query-exception branch July 20, 2022 06:13
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