Skip to content

Commit 0757ca1

Browse files
committed
fixup! NH-3466 - Register supported functions for MySQLDialect
Fix "date" function registration for MySql
1 parent 5a95c9d commit 0757ca1

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
@@ -177,7 +177,7 @@ protected virtual void RegisterFunctions()
177177
RegisterFunction("day", new StandardSQLFunction("day", NHibernateUtil.Int32));
178178
RegisterFunction("month", new StandardSQLFunction("month", NHibernateUtil.Int32));
179179
RegisterFunction("year", new StandardSQLFunction("year", NHibernateUtil.Int32));
180-
RegisterFunction("date", new StandardSQLFunction("date", NHibernateUtil.Int32));
180+
RegisterFunction("date", new StandardSQLFunction("date", NHibernateUtil.Date));
181181
RegisterFunction("last_day", new StandardSQLFunction("last_day", NHibernateUtil.Date));
182182
}
183183

0 commit comments

Comments
 (0)