Ticket #1935: t1935_1.0fix.patch

File t1935_1.0fix.patch, 1.0 KB (added by develop7, 12 months ago)

patch that fixes this issue in 1.0 branch

  • branches/1.0/lib/Doctrine/Query/Having.php

    a b  
    6666                    $reference = implode('.', $a); 
    6767                    $map       = $this->query->load($reference, false); 
    6868                    $field     = $map['table']->getColumnName($field); 
    69                     $func      = $this->query->getTableAlias($reference) . '.' . $field; 
     69 
     70                    return $this->query->getConnection()->quoteIdentifier($this->query->getTableAlias($reference) . '.' . $field); 
    7071                } else { 
    7172                    $field = end($a); 
    72                     $func  = $this->query->getAggregateAlias($field); 
     73 
     74                    return $this->query->getAggregateAlias($field); 
    7375                } 
    74                 return $this->query->getConnection()->quoteIdentifier($func); 
    7576            } else { 
    7677                return $this->query->getConnection()->quoteIdentifier($func); 
    7778            }