FriendsOfSymfony1 / doctrine1

[DEPRECATED -- Use Doctrine2 instead] Doctrine 1 Object Relational Mapper.
http://www.doctrine-project.org
GNU Lesser General Public License v2.1
40 stars 75 forks source link

Double quoting on select aliases #50

Open desyncr opened 6 years ago

desyncr commented 6 years ago

I'm having the following issue with Doctrine_Core::ATTR_QUOTE_IDENTIFIER config. Queries are being double quoted like this:

SELECT `u`.```id``` AS `u__0` FROM

When I issue the following query:

$query =  Doctrine_Query::create()->select('u.id as user_id')

Digging up on some git logs I found out about this commit on a fork.

Can we merge this up? Have you stumbled upon this issue as well?