Changeset 3723

Show
Ignore:
Timestamp:
02/10/08 14:49:22 (17 months ago)
Author:
pookey
Message:

fixes #732 - yes, it's a nasty hack, but we have a new parser on the way

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Query/Having.php

    r3212 r3723  
    9494        $value     = implode(' ', $tokens); 
    9595        $part .= ' ' . $operator . ' ' . $value; 
     96        // check the RHS for aggregate functions 
     97        if (strpos($value, '(') !== false) { 
     98          $value = $this->parseAggregateFunction($value); 
     99        } 
    96100        return $part; 
    97101    } 
  • branches/0.9/lib/Doctrine/Query/Having.php

    r3032 r3723  
    9494        $value     = implode(' ', $tokens); 
    9595        $part .= ' ' . $operator . ' ' . $value; 
     96        // check the RHS for aggregate functions 
     97        if (strpos($value, '(') !== false) { 
     98          $value = $this->parseAggregateFunction($value); 
     99        } 
    96100        return $part; 
    97101    } 
  • trunk/lib/Doctrine/Query/Having.php

    r3570 r3723  
    9494        $value     = implode(' ', $tokens); 
    9595        $part .= ' ' . $operator . ' ' . $value; 
     96        // check the RHS for aggregate functions 
     97        if (strpos($value, '(') !== false) { 
     98          $value = $this->parseAggregateFunction($value); 
     99        } 
    96100        return $part; 
    97101    }