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

Basic exception handling for SQL Server #4928

Merged
merged 3 commits into from
Oct 24, 2021

Conversation

morozov
Copy link
Member

@morozov morozov commented Oct 24, 2021

Q A
Type improvement
BC Break no
  1. Do not skip the connection error test on MySQL 8.
  2. There's no need to create a schema in order to just reproduce a connection failure.
  3. In order to create a new connection, the test should use TestUtil::getConnectionParams() instead of $this->connection->getParams(). See Connection::getParams() leaks implementation details #3593.
  4. The testConnectionException() test has been refactored into three since one of the scenarios is not fully supported by the SQL Server drivers. Once this test is enabled, we'll need to use LoginTimeout=1 in the connection parameters. Otherwise, the connection may take 20-30 seconds to fail.

@morozov morozov force-pushed the sqlsrv-exception-handler branch from 9adeab1 to 41b6200 Compare October 24, 2021 01:33
@morozov morozov added this to the 3.2.0 milestone Oct 24, 2021
@morozov morozov marked this pull request as ready for review October 24, 2021 01:47
@morozov morozov requested review from derrabus and greg0ire October 24, 2021 01:47
@morozov morozov merged commit 808c948 into doctrine:3.2.x Oct 24, 2021
@morozov morozov deleted the sqlsrv-exception-handler branch October 24, 2021 14:54
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants