mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-760: Column names with MySQL reserved words are not escaped with _`_ #936
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 (Aug 20, 2010).
Jira issue originally created by user aubergine:
I had field name
keyfor column and it generates error after execution because it reserved MySQL word.In Doctrine\DBAL\Statement::_sql I had this query:
INSERT INTO user_systems (key, created, updated, id_local, id_user, id_system) VALUES (?, ?, ?, ?, ?, ?)
@doctrinebot commented on GitHub (Aug 20, 2010):
Comment created by romanb:
There is no automatic escaping. See: http://www.doctrine-project.org/projects/orm/2.0/docs/reference/basic-mapping/en#quoting-reserved-words
@doctrinebot commented on GitHub (Aug 20, 2010):
Issue was closed with resolution "Invalid"