Skip to content

Commit 4ed520c

Browse files
Update src/NHibernate/Dialect/Function/ClassicCountFunction.cs
Co-Authored-By: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com>
1 parent fdc09b9 commit 4ed520c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/NHibernate/Dialect/Function/ClassicCountFunction.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,13 @@ public override IType ReturnType(IType columnType, IMapping mapping)
2020
{
2121
return NHibernateUtil.Int32;
2222
}
23+
24+
public override IType GetReturnType(IEnumerable<IType> argumentTypes, IMapping mapping, bool throwOnError)
25+
{
26+
// 6.0 TODO: return NHibernateUtil.Int32;
27+
#pragma warning disable 618
28+
return ReturnType(argumentTypes.FirstOrDefault(), mapping);
29+
#pragma warning restore 618
30+
}
2331
}
2432
}

0 commit comments

Comments
 (0)