From: <fab...@us...> - 2009-10-14 20:37:53
|
Revision: 4749 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4749&view=rev Author: fabiomaulo Date: 2009-10-14 20:37:46 +0000 (Wed, 14 Oct 2009) Log Message: ----------- Fix NH-1970 Modified Paths: -------------- branches/2.1.x/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs Modified: branches/2.1.x/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs 2009-10-14 20:27:08 UTC (rev 4748) +++ branches/2.1.x/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs 2009-10-14 20:37:46 UTC (rev 4749) @@ -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. |