158c158,160 < RegisterFunction("replace", new StandardSafeSQLFunction("replace", NHibernateUtil.String, 3)); --- > RegisterFunction("replace", new StandardSafeSQLFunction("replace", NHibernateUtil.String, 3)); > > RegisterFunction("str", new SQLFunctionTemplate(NHibernateUtil.String, "cast(?1 as nvarchar)"));