Skip to content

Commit 3e95b1f

Browse files
Update src/NHibernate/Dialect/Function/CountQueryFunctionInfo.cs
Co-Authored-By: Frédéric Delaporte <[email protected]>
1 parent 4ed520c commit 3e95b1f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/NHibernate/Dialect/Function/CountQueryFunctionInfo.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,13 @@ public override IType ReturnType(IType columnType, IMapping mapping)
1515
{
1616
return NHibernateUtil.Int64;
1717
}
18+
19+
public override IType GetReturnType(IEnumerable<IType> argumentTypes, IMapping mapping, bool throwOnError)
20+
{
21+
// 6.0 TODO: return NHibernateUtil.Int64;
22+
#pragma warning disable 618
23+
return ReturnType(argumentTypes.FirstOrDefault(), mapping);
24+
#pragma warning restore 618
25+
}
1826
}
1927
}

0 commit comments

Comments
 (0)