Skip to content

Commit 07fe851

Browse files
committed
DB2 dialect: Support str function
1 parent 1b60ca3 commit 07fe851

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NHibernate/Dialect/DB2Dialect.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public DB2Dialect()
121121
RegisterFunction("integer", new StandardSQLFunction("integer", NHibernateUtil.Int32));
122122
RegisterFunction("smallint", new StandardSQLFunction("smallint", NHibernateUtil.Int16));
123123

124+
RegisterFunction("str", new StandardSQLFunction("varchar", NHibernateUtil.AnsiString));
124125
RegisterFunction("digits", new StandardSQLFunction("digits", NHibernateUtil.String));
125126
RegisterFunction("ascii", new StandardSQLFunction("ascii", NHibernateUtil.Int32));
126127
RegisterFunction("chr", new StandardSQLFunction("chr", NHibernateUtil.Character));

0 commit comments

Comments
 (0)