You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adds some "and (extract year from ?)" to the sql. This does not work in M$ Access.
To fix this add
RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.DateTime, "year(?1)"));
RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.DateTime, "month(?1)"));
RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.DateTime, "day(?1)"));
to the JetDialect
After that all worked like a charm
Thomas Kalmar added a comment - 17/Sep/09 10:13 PM
Silly me. Should be:
RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.Int32, "year(?1)"));
RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.Int32, "month(?1)"));
RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.Int32, "day(?1)"));
The text was updated successfully, but these errors were encountered:
Thomas Kalmar created issue - 22/Jul/09 12:00 PM
Thomas Kalmar added a comment - 17/Sep/09 10:13 PM
The text was updated successfully, but these errors were encountered: