From: <fab...@us...> - 2009-10-14 20:38:40
|
Revision: 4750 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4750&view=rev Author: fabiomaulo Date: 2009-10-14 20:38:28 +0000 (Wed, 14 Oct 2009) Log Message: ----------- Merge r4749 (fix NH-1970) Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs Modified: trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs 2009-10-14 20:37:46 UTC (rev 4749) +++ trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs 2009-10-14 20:38:28 UTC (rev 4750) @@ -53,6 +53,7 @@ RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%d\", ?1)")); RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%m\", ?1)")); RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.Int32, "strftime(\"%Y\", ?1)")); + RegisterFunction("substring", new StandardSQLFunction("substr", NHibernateUtil.String)); } public override Schema.IDataBaseSchema GetDataBaseSchema(DbConnection connection) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |