Issue with SQL Server column names when they include "[" and "]" #4935

Open
opened 2026-01-22 14:53:09 +01:00 by admin · 0 comments
Owner

Originally created by @j-d on GitHub (Dec 14, 2015).

A table with two columns. One has a funny name like [MyColumn] in a table and another column with a regular name such as my_column_2.
The the listTableColumns method in the AbstractSchemaManager will return an array where the keys will be [mycolumn] and my_column_2 but the actual names of the columns will be MyColumn and my_column_2, which is wrong.

Originally created by @j-d on GitHub (Dec 14, 2015). A table with two columns. One has a funny name like `[MyColumn]` in a table and another column with a regular name such as `my_column_2`. The the `listTableColumns` method in the `AbstractSchemaManager` will return an array where the keys will be `[mycolumn]` and `my_column_2` but the actual names of the columns will be `MyColumn` and `my_column_2`, which is wrong.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4935