Skip to content

Commit 19bed0a

Browse files
committed
MySQLDialect.cs: Define power to return double to harmonize with other dialects (makes use of Math.Pow() in Linq queries work). NH-3381.
1 parent 7b8ccde commit 19bed0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Dialect/MySQLDialect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected virtual void RegisterFunctions()
140140

141141
RegisterFunction("rand", new NoArgSQLFunction("rand", NHibernateUtil.Double));
142142

143-
RegisterFunction("power", new StandardSQLFunction("power", NHibernateUtil.Single));
143+
RegisterFunction("power", new StandardSQLFunction("power", NHibernateUtil.Double));
144144

145145
RegisterFunction("stddev", new StandardSQLFunction("stddev", NHibernateUtil.Double));
146146
RegisterFunction("variance", new StandardSQLFunction("variance", NHibernateUtil.Double));

0 commit comments

Comments
 (0)