mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-804: Schema Generator for MySql should use a ` around names of columns and table names #989
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 thearound 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.@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):
Issue was closed with resolution "Duplicate"
@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.