You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new table is now named "[dbo.test2]" instead of "test2". This does only occur in SQLServer platform, all other platforms use quoting as expected so this is inconsistent between SQLServer platform and all other platforms.
Bug Report
Summary
SQL Server uses
sp_rename
function for renaming tables but using quotes for target table name results in wrong table name.How to reproduce
The new table is now named "[dbo.test2]" instead of "test2". This does only occur in SQLServer platform, all other platforms use quoting as expected so this is inconsistent between SQLServer platform and all other platforms.
Expected behaviour
Quotes for the target table name should be automatically removed by the SQLServer platform here to get consistent results:
https://github.com/doctrine/dbal/blob/4.2.x/src/Platforms/SQLServerPlatform.php#L498
The text was updated successfully, but these errors were encountered: