MsSqlCeDialect should correct override string manipulation functions
Description
MsSqlCeDialect should override length functions with len function
RegisterFunction("length", new StandardSQLFunction("len", NHibernateUtil.Int32)); RegisterFunction("locate", new StandardSQLFunction("charindex", NHibernateUtil.Int32)); RegisterFunction("replace", new StandardSafeSQLFunction("replace", NHibernateUtil.String, 3)); RegisterFunction("rtrim", new StandardSQLFunction("rtrim")); RegisterFunction("ltrim", new StandardSQLFunction("LTRIM_lce_ltrim")); RegisterFunction("upper", new StandardSQLFunction("upper")); RegisterFunction("lower", new StandardSQLFunction("lower"));
RegisterFunction("trim", new AnsiTrimEmulationFunction());
MsSqlCeDialect should override length functions with len function
RegisterFunction("length", new StandardSQLFunction("len", NHibernateUtil.Int32));
RegisterFunction("locate", new StandardSQLFunction("charindex", NHibernateUtil.Int32));
RegisterFunction("replace", new StandardSafeSQLFunction("replace", NHibernateUtil.String, 3));
RegisterFunction("rtrim", new StandardSQLFunction("rtrim"));
RegisterFunction("ltrim", new StandardSQLFunction("LTRIM_lce_ltrim"));
RegisterFunction("upper", new StandardSQLFunction("upper"));
RegisterFunction("lower", new StandardSQLFunction("lower"));
RegisterFunction("trim", new AnsiTrimEmulationFunction());
http://msdn.microsoft.com/en-us/library/ms174077(v=sql.90).aspx