From: <pa...@us...> - 2011-03-06 07:17:10
|
Revision: 5435 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5435&view=rev Author: patearl Date: 2011-03-06 07:17:04 +0000 (Sun, 06 Mar 2011) Log Message: ----------- SQLite: Support for current_timestamp() function. Returns UTC with SQLite. Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs Modified: trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs 2011-03-06 06:53:56 UTC (rev 5434) +++ trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs 2011-03-06 07:17:04 UTC (rev 5435) @@ -53,6 +53,7 @@ RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.String, "strftime('%d', ?1)")); RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.String, "strftime('%m', ?1)")); RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.String, "strftime('%Y', ?1)")); + RegisterFunction("current_timestamp", new NoArgSQLFunction("current_timestamp", NHibernateUtil.DateTime, false)); RegisterFunction("substring", new StandardSQLFunction("substr", NHibernateUtil.String)); RegisterFunction("trim", new AnsiTrimEmulationFunction()); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |