1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] Started refactoring of AST nodes to use public properties instead of getter/setter methods

This commit is contained in:
guilhermeblanco 2009-08-06 15:38:41 +00:00
parent 3949fddcf5
commit 401235d7ca

View File

@ -681,16 +681,16 @@ class SqlWalker implements TreeWalker
public function walkAggregateExpression($aggExpression)
{
$sql = '';
$parts = $aggExpression->getPathExpression()->getParts();
$dqlAlias = $aggExpression->getPathExpression()->getIdentificationVariable();
$parts = $aggExpression->pathExpression->getParts();
$dqlAlias = $aggExpression->pathExpression->getIdentificationVariable();
$fieldName = $parts[0];
$qComp = $this->_queryComponents[$dqlAlias];
$columnName = $qComp['metadata']->getColumnName($fieldName);
$sql .= $aggExpression->getFunctionName() . '(';
$sql .= $aggExpression->functionName . '(';
if ($aggExpression->isDistinct()) $sql .= 'DISTINCT ';
if ($aggExpression->isDistinct) $sql .= 'DISTINCT ';
$sql .= $this->getSqlTableAlias($qComp['metadata']->getTableName(), $dqlAlias) . '.'
. $this->_conn->quoteIdentifier($columnName) . ')';