Skip to content

Commit 450679f

Browse files
committed
NH-3465 - Add support of IIF function for Oracle
1 parent 7b38511 commit 450679f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NHibernate/Dialect/Oracle8iDialect.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ protected virtual void RegisterFunctions()
223223
RegisterFunction("next_day", new StandardSQLFunction("next_day", NHibernateUtil.Date));
224224

225225
RegisterFunction("str", new StandardSQLFunction("to_char", NHibernateUtil.String));
226+
227+
RegisterFunction("iif", new SQLFunctionTemplate(null, "case when ?1 then ?2 else ?3 end"));
226228
}
227229

228230
protected internal virtual void RegisterDefaultProperties()

0 commit comments

Comments
 (0)