DDC-804: Schema Generator for MySql should use a ` around names of columns and table names #989

Closed
opened 2026-01-22 12:58:12 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 14, 2010).

Jira issue originally created by user mmacchio:

I named one of my tables Group, when I tried to generate the schema, I get MySql errors. The problem is Group is a keyword, so it needs to be Group, the Schema generator should be smart enough to put the around the names if it is not already present. Setting the table name toGroup` through the meta data doesn't work either. The only workaround is to change the name of my table.

Originally created by @doctrinebot on GitHub (Sep 14, 2010). Jira issue originally created by user mmacchio: I named one of my tables Group, when I tried to generate the schema, I get MySql errors. The problem is Group is a keyword, so it needs to be `Group`, the Schema generator should be smart enough to put the `around the names if it is not already present. Setting the table name to`Group` through the meta data doesn't work either. The only workaround is to change the name of my table.
admin added the Bug label 2026-01-22 12:58:12 +01:00
admin closed this issue 2026-01-22 12:58:13 +01:00
Author
Owner

@doctrinebot commented on GitHub (Sep 14, 2010):

Comment created by romanb:

See: DBAL-40
See: http://www.doctrine-project.org/projects/orm/2.0/docs/reference/basic-mapping/en#quoting-reserved-words

@doctrinebot commented on GitHub (Sep 14, 2010): Comment created by romanb: See: [DBAL-40](http://www.doctrine-project.org/jira/browse/DBAL-40) See: http://www.doctrine-project.org/projects/orm/2.0/docs/reference/basic-mapping/en#quoting-reserved-words
Author
Owner

@doctrinebot commented on GitHub (Sep 14, 2010):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Sep 14, 2010): Issue was closed with resolution "Duplicate"
Author
Owner

@doctrinebot commented on GitHub (Sep 14, 2010):

Comment created by romanb:

Changing the name of the table is not a workaround it is the only real solution :) quoting is the workaround.

@doctrinebot commented on GitHub (Sep 14, 2010): Comment created by romanb: Changing the name of the table is not a workaround it is the only real solution :) quoting is the workaround.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#989