Exemple #1
0
        public void ExitOptionalGroupBy(QueryParser.OptionalGroupByContext context)
        {
            if (context.GROUP() == null)
            {
                return; // there is no GROUP BY clause
            }

            var query      = _queries.Pop();
            var expression = _expressions.Pop();

            query = query.WithGroup(expression);
            _queries.Push(query);
        }
Exemple #2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="QueryParser.optionalGroupBy"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitOptionalGroupBy([NotNull] QueryParser.OptionalGroupByContext context)
 {
 }
Exemple #3
0
 public void EnterOptionalGroupBy(QueryParser.OptionalGroupByContext context)
 {
 }