Skip to content

Commit caa02e9

Browse files
committed
Register truncate function for DB2
1 parent 30f92a6 commit caa02e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NHibernate/Dialect/DB2Dialect.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ public DB2Dialect()
132132
RegisterFunction("length", new StandardSQLFunction("length", NHibernateUtil.Int32));
133133
RegisterFunction("ltrim", new StandardSQLFunction("ltrim"));
134134

135+
RegisterFunction("truncate", new StandardSQLFunction("truncate"));
136+
135137
RegisterFunction("mod", new ModulusFunction(true, false));
136138

137139
RegisterFunction("substring", new StandardSQLFunction("substr", NHibernateUtil.String));

0 commit comments

Comments
 (0)