#1518: Missing identifier quoting in join condition
--------------------------------------------------------------+-------------
 Reporter:  mm                                                |       Owner:  
romanb
     Type:  defect                                            |      Status:  
new   
 Priority:  critical                                          |   Milestone:    
    
Component:  Query/Hydration                                   |     Version:  
1.0.2 
 Keywords:  quoting, query, condition, ATTR_QUOTE_IDENTIFIER  |    Has_test:  0 
    
 Mystatus:  Pending Core Response                             |   Has_patch:  1 
    
--------------------------------------------------------------+-------------
 Problem appears when we re using join condition and WITH to add another
 condition. Doctrine::ATTR_QUOTE_IDENTIFIER is set.
 Related tickets:
 #1262
 #1272
 #1418

 Query:
 {{{
 $query = Doctrine_Query::create()
         ->from('Message m')
         ->innerJoin('m.Translation t WITH t.name = m.name');
 }}}
 Actually parser produce:
 {{{
 INNER JOIN "translation" "t1" ON "t1"."module" = "m1."module" AND
 ("t1"."name" = m1.name)
 }}}
 Expected:
 {{{
 INNER JOIN "translation" "t1" ON "t1"."module" = "m1."module" AND
 ("t1"."name" = "m1"."name")
 }}}

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1518>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to