Skip to content

Commit 436ff1d

Browse files
committed
MySQL fix applied blindly, since I couldn't reproduce it
1 parent cf38fe9 commit 436ff1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NHibernate/Dialect/MySQLDialect.cs

+1
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ protected virtual void RegisterFunctions()
316316
RegisterFunction("year", new StandardSQLFunction("year", NHibernateUtil.Int32));
317317
RegisterFunction("date", new StandardSQLFunction("date", NHibernateUtil.Date));
318318
RegisterFunction("last_day", new StandardSQLFunction("last_day", NHibernateUtil.Date));
319+
RegisterFunction("secondtruncated", new SQLFunctionTemplate(NHibernateUtil.Int32, "floor(second(?1))"));
319320
}
320321

321322
/// <summary></summary>

0 commit comments

Comments
 (0)