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)
313
313
private void OutAggregateFunctionName ( IASTNode m )
314
314
{
315
315
var aggregateNode = ( AggregateNode ) m ;
316
- Out ( aggregateNode . SqlFunction ? . FunctionName ?? aggregateNode . Text ) ;
316
+ Out ( aggregateNode . SqlFunctionName ( ) ) ;
317
317
}
318
318
319
319
private void CommaBetweenParameters ( String comma )
Original file line number Diff line number Diff line change @@ -34,9 +34,20 @@ public override IType DataType
34
34
base . DataType = value ;
35
35
}
36
36
}
37
+
37
38
public override void SetScalarColumnText ( int i )
38
39
{
39
40
ColumnHelper . GenerateSingleScalarColumn ( ASTFactory , this , i ) ;
40
41
}
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
+ }
41
52
}
42
53
}
You can’t perform that action at this time.
0 commit comments