1
0
mirror of synced 2025-03-19 22:43:58 +03:00

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

This commit is contained in:
pookey 2008-02-10 14:49:22 +00:00
parent 0061bc827b
commit 04276090b5

View File

@ -93,6 +93,10 @@ class Doctrine_Query_Having extends Doctrine_Query_Condition
$operator = array_shift($tokens);
$value = implode(' ', $tokens);
$part .= ' ' . $operator . ' ' . $value;
// check the RHS for aggregate functions
if (strpos($value, '(') !== false) {
$value = $this->parseAggregateFunction($value);
}
return $part;
}
}