-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
SQLServer platform quoteIdentifier wrong escaping #4643
Labels
Milestone
Comments
morozov
added a commit
to morozov/dbal
that referenced
this issue
May 13, 2021
morozov
added a commit
to morozov/dbal
that referenced
this issue
May 14, 2021
morozov
added a commit
to morozov/dbal
that referenced
this issue
May 14, 2021
morozov
added a commit
that referenced
this issue
May 14, 2021
[GH-4643] Fix SQLServerPlatform::quoteIdentifier()
Closed via #4648. |
derrabus
added a commit
to derrabus/dbal
that referenced
this issue
Jun 5, 2021
* 2.13.x: Bump doctrine/coding-standard [doctrineGH-4643] Fix SQLServerPlatform::quoteIdentifier() [doctrineGH-4645] Use error suppression instead of an error handler in MySQLi Connection Rewrote `DriverManagerTest` replica/shards test scenarios to verify whole data structure equality Add type-inference tests to github actions, so that we test also that types match up Add warnings in docblocks Rework the caching documentation Fix doctrine#4637 by duplicating the type definition for `DriverManager::getConnection($args)` params
derrabus
added a commit
to derrabus/dbal
that referenced
this issue
Jun 5, 2021
* 2.13.x: Bump doctrine/coding-standard [doctrineGH-4643] Fix SQLServerPlatform::quoteIdentifier() [doctrineGH-4645] Use error suppression instead of an error handler in MySQLi Connection Rewrote `DriverManagerTest` replica/shards test scenarios to verify whole data structure equality Add type-inference tests to github actions, so that we test also that types match up Add warnings in docblocks Rework the caching documentation Fix doctrine#4637 by duplicating the type definition for `DriverManager::getConnection($args)` params
derrabus
added a commit
to derrabus/dbal
that referenced
this issue
Jun 5, 2021
* 2.13.x: Bump doctrine/coding-standard [doctrineGH-4643] Fix SQLServerPlatform::quoteIdentifier() [doctrineGH-4645] Use error suppression instead of an error handler in MySQLi Connection Rewrote `DriverManagerTest` replica/shards test scenarios to verify whole data structure equality Add type-inference tests to github actions, so that we test also that types match up Add warnings in docblocks Rework the caching documentation Fix doctrine#4637 by duplicating the type definition for `DriverManager::getConnection($args)` params
derrabus
added a commit
to derrabus/dbal
that referenced
this issue
Jun 5, 2021
* 2.13.x: Bump doctrine/coding-standard [doctrineGH-4643] Fix SQLServerPlatform::quoteIdentifier() [doctrineGH-4645] Use error suppression instead of an error handler in MySQLi Connection Rewrote `DriverManagerTest` replica/shards test scenarios to verify whole data structure equality Add type-inference tests to github actions, so that we test also that types match up Add warnings in docblocks Rework the caching documentation Fix doctrine#4637 by duplicating the type definition for `DriverManager::getConnection($args)` params
derrabus
added a commit
to derrabus/dbal
that referenced
this issue
Jun 6, 2021
* 2.13.x: Bump doctrine/coding-standard [doctrineGH-4643] Fix SQLServerPlatform::quoteIdentifier() [doctrineGH-4645] Use error suppression instead of an error handler in MySQLi Connection Rewrote `DriverManagerTest` replica/shards test scenarios to verify whole data structure equality Add type-inference tests to github actions, so that we test also that types match up Add warnings in docblocks Rework the caching documentation Fix doctrine#4637 by duplicating the type definition for `DriverManager::getConnection($args)` params
derrabus
added a commit
to derrabus/dbal
that referenced
this issue
Jun 7, 2021
* 2.13.x: Bump doctrine/coding-standard [doctrineGH-4643] Fix SQLServerPlatform::quoteIdentifier() [doctrineGH-4645] Use error suppression instead of an error handler in MySQLi Connection Rewrote `DriverManagerTest` replica/shards test scenarios to verify whole data structure equality Add type-inference tests to github actions, so that we test also that types match up Add warnings in docblocks Rework the caching documentation Fix doctrine#4637 by duplicating the type definition for `DriverManager::getConnection($args)` params Signed-off-by: Alexander M. Turek <me@derrabus.de>
derrabus
added a commit
to derrabus/dbal
that referenced
this issue
Jun 7, 2021
* 2.13.x: Bump doctrine/coding-standard [doctrineGH-4643] Fix SQLServerPlatform::quoteIdentifier() [doctrineGH-4645] Use error suppression instead of an error handler in MySQLi Connection Rewrote `DriverManagerTest` replica/shards test scenarios to verify whole data structure equality Add type-inference tests to github actions, so that we test also that types match up Add warnings in docblocks Rework the caching documentation Fix doctrine#4637 by duplicating the type definition for `DriverManager::getConnection($args)` params Signed-off-by: Alexander M. Turek <me@derrabus.de>
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Summary
It looks like that escaping identifier for sql platform is broken since day one.
Current behaviour
This is in tests:
dbal/tests/Platforms/AbstractSQLServerPlatformTestCase.php
Line 576 in 6611e6d
But if I try for example create table
Expected behaviour
Expected output should be
[fo]]o]
So the function should be:
Output is than same as from
https://docs.microsoft.com/en-us/sql/t-sql/functions/quotename-transact-sql?view=sql-server-ver15
The text was updated successfully, but these errors were encountered: