Skip to content

Conversation

@GromNaN
Copy link
Member

@GromNaN GromNaN commented Sep 1, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #61579
License MIT

When the sameDatabaseChecker tries to delete a table that doesn't exist on MSSQL, it gets a DatabaseObjectNotFoundException, that is a parent error of TableNotFoundException.
https://github.com/doctrine/dbal/blob/d5a5a2165676e15a1805dc1b43d57c0bec7493bc/src/Exception/TableNotFoundException.php#L10C38-L10C69

The error code is 15151: Cannot %S_MSG the %S_MSG '%.*ls', because it does not exist or you do not have permission.. Doctrine DBAL cannot distinguish which object it is: https://github.com/doctrine/dbal/blob/d5a5a2165676e15a1805dc1b43d57c0bec7493bc/src/Driver/API/SQLSrv/ExceptionConverter.php#L43

@fabpot
Copy link
Member

fabpot commented Sep 2, 2025

Thank you @GromNaN.

@fabpot fabpot merged commit d5e2a68 into symfony:6.4 Sep 2, 2025
9 of 11 checks passed
@GromNaN GromNaN deleted the gh-61579 branch September 2, 2025 08:38
This was referenced Sep 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants