public function walkSelectExpression($selectExpression)
    {
        $expr = $selectExpression->expression;
        $sql  = parent::walkSelectExpression($selectExpression);

        if ($expr instanceof ReturnsGeometryInterface && !$selectExpression->hiddenAliasResultVariable) {
            $alias = trim(strrchr($sql, ' '));
            $this->rsm->typeMappings[$alias] = 'geometry';
        }

        return $sql;
    }
public function walkSelectExpression($selectExpression)
    {
        $expr = $selectExpression->expression;
        $sql  = parent::walkSelectExpression($selectExpression);

        if ($expr instanceof ReturnsGeometryInterface && !$selectExpression->hiddenAliasResultVariable) {
            $alias = trim(strrchr($sql, ' '));
            $this->rsm->typeMappings[$alias] = 'geometry';
        }

        return $sql;
    }
public function walkSelectExpression ( $ selectExpression ) { $ expr = $ selectExpression -> expression ; $ sql = parent :: walkSelectExpression ( $ selectExpression ) ; if ( $ expr instanceof ReturnsGeometryInterface && ! $ selectExpression -> hiddenAliasResultVariable ) { $ alias = trim ( strrchr ( $ sql , ' ' ) ) ; $ this -> rsm -> typeMappings [ $ alias ] = 'geometry' ; } return $ sql ; }
Walks down a SelectExpression AST node and generates the corresponding SQL.

@param SelectExpression $selectExpression

@return string The SQL.
Walks down a SelectExpression AST node and generates the corresponding SQL .