mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-630: Column aliases are not properly quoted #779
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 (Jun 9, 2010).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user wizardz:
Sandbox
xml
code
Expectected to get valid user entity
Got
Loks like the problem is in the BasicEntityPersister::_getSelectColumnSQL
@doctrinebot commented on GitHub (Aug 8, 2010):
Comment created by romanb:
You mention BETA1 as the affected version. Can you confirm that this issue still exists in the BETA3 release and/or the master repository?
@doctrinebot commented on GitHub (Aug 15, 2010):
Comment created by @beberlei:
Are dashes even allowed in column names? I dont think so.
@doctrinebot commented on GitHub (Aug 19, 2010):
Comment created by shurakai:
I don't think so either. This seems to be a non-issue.
@doctrinebot commented on GitHub (Aug 26, 2010):
Comment created by romanb:
Unscheduled until we get further feedback.
@doctrinebot commented on GitHub (Sep 16, 2010):
Comment created by wizardz:
Roman,
I do not have this setup anymore so I cannot check next beta releases
Benjamin,
dash it is an allowed character for MySQL at least.
I do not think it is a big issue, it's just mater of your preferences - do you want to allow using of dash in the field names or not. If not may be it's a good idea to mention this fact somewhere in documentation
@doctrinebot commented on GitHub (Sep 20, 2010):
Comment created by @beberlei:
According to the SQL Error messages dashes dont seem to be allowed. Its exactly that character that causes the error message or not?
Hm, but dash seems to work. So it must be something else
@doctrinebot commented on GitHub (Sep 23, 2010):
Comment created by @beberlei:
This doesn't work because the persister uses the column-name for the AS part of the query. We won't fix this programatically, this is rather a restriction of Doctrine 2.
For this reason i have updated the documentation to state that non a-zA-Z0-9_ chars should not be used (even quoted) as columns.
@doctrinebot commented on GitHub (Sep 23, 2010):
Issue was closed with resolution "Fixed"