File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
src/NHibernate/Hql/Ast/ANTLR Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ private void EndFunctionTemplate(IASTNode m)
313313 private void OutAggregateFunctionName ( IASTNode m )
314314 {
315315 var aggregateNode = ( AggregateNode ) m ;
316- Out ( aggregateNode . SqlFunction ? . FunctionName ?? aggregateNode . Text ) ;
316+ Out ( aggregateNode . SqlFunctionName ( ) ) ;
317317 }
318318
319319 private void CommaBetweenParameters ( String comma )
Original file line number Diff line number Diff line change @@ -34,9 +34,20 @@ public override IType DataType
3434 base . DataType = value ;
3535 }
3636 }
37+
3738 public override void SetScalarColumnText ( int i )
3839 {
3940 ColumnHelper . GenerateSingleScalarColumn ( ASTFactory , this , i ) ;
4041 }
42+
43+ public string SqlFunctionName ( )
44+ {
45+ if ( SessionFactoryHelper . FindSQLFunction ( Text ) is ISQLFunctionExtended sqlFunction )
46+ {
47+ return sqlFunction . FunctionName ;
48+ }
49+
50+ return Text ;
51+ }
4152 }
4253}
You can’t perform that action at this time.
0 commit comments