Exemplo n.º 1
0
        public override IASTNode VisitAggregationFunction(MySqlCommandParser.AggregationFunctionContext ctx)
        {
            String aggregationType = ctx.aggregationFunctionName().GetText();

            return(AggregationType.IsAggregationType(aggregationType)
                    ? CreateAggregationSegment(ctx, aggregationType) : new ExpressionProjectionSegment(ctx.Start.StartIndex, ctx.Stop.StopIndex, ctx.GetText()));
        }
Exemplo n.º 2
0
        public override IASTNode VisitAggregationFunction(SqlServerCommandParser.AggregationFunctionContext context)
        {
            var aggregationType = context.aggregationFunctionName().GetText();

            return(AggregationType.IsAggregationType(aggregationType)
                ? CreateAggregationSegment(context, aggregationType)
                : new ExpressionProjectionSegment(context.Start.StartIndex, context.Stop.StopIndex, context.GetText()));
        }