Skip to content

Commit 9a9dc5d

Browse files
committed
Register right function for SQLite
1 parent 629ac62 commit 9a9dc5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NHibernate/Dialect/SQLiteDialect.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ protected virtual void RegisterFunctions()
110110

111111
RegisterFunction("substring", new StandardSQLFunction("substr", NHibernateUtil.String));
112112
RegisterFunction("left", new SQLFunctionTemplate(NHibernateUtil.String, "substr(?1,1,?2)"));
113+
RegisterFunction("right", new SQLFunctionTemplate(NHibernateUtil.String, "substr(?1,-?2)"));
113114
RegisterFunction("trim", new AnsiTrimEmulationFunction());
114115
RegisterFunction("replace", new StandardSafeSQLFunction("replace", NHibernateUtil.String, 3));
115116
RegisterFunction("chr", new StandardSQLFunction("char", NHibernateUtil.Character));

0 commit comments

Comments
 (0)