[DBAL-418] [GH-251] Escape identifier names in MySQL ALTER queries Created: 21/Jan/13  Updated: 01/Apr/13  Resolved: 01/Apr/13

Status: Resolved
Project: Doctrine DBAL
Component/s: None
Affects Version/s: None
Fix Version/s: None
Security Level: All

Type: Bug Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Invalid Votes: 0
Labels: None


This issue is created automatically through a Github pull request on behalf of Xowap:

Url: https://github.com/doctrine/dbal/pull/251


The generated MySQL queries did not properly escape the identifier, thus
making it impossible to use SQL keywords as field/index/table name.

Although this is indeed a quite unwise design choice, this is required
for many legacy applications.

The submitted modifications do cover MySQL only, because it is the one that I need to use. However, I think that all the platforms are flawed with this issue and that a general re-work should be done here.

Comment by Benjamin Eberlei [ 21/Jan/13 ]

A related Github Pull-Request [GH-251] was opened

Generated at Mon Nov 30 17:31:45 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.