Skip to content

Commit d578b1d

Browse files
authored
Simplify aggregateDistinctAll rule in Hql.g (#3374)
1 parent 5f6069a commit d578b1d

File tree

1 file changed

+2
-3
lines changed
  • src/NHibernate/Hql/Ast/ANTLR

1 file changed

+2
-3
lines changed

src/NHibernate/Hql/Ast/ANTLR/Hql.g

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,12 +628,11 @@ aggregateArgument
628628
;
629629
630630
aggregateDistinctAll
631-
: ( distinctAll aggregateArgument ) => (distinctAll aggregateArgument)
632-
| aggregateArgument
631+
: ( distinctAll? aggregateArgument )
633632
;
634633
635634
distinctAll
636-
: ( DISTINCT | ALL )
635+
: {input.LA(1) == DISTINCT || input.LA(1) == ALL}? ( DISTINCT | ALL )
637636
;
638637
639638
//## collection: ( OPEN query CLOSE ) | ( 'elements'|'indices' OPEN path CLOSE );

0 commit comments

Comments
 (0)