Skip to content

Commit 5a037ef

Browse files
committed
Remove new_uuid from SqLite dialect
1 parent 7602f5f commit 5a037ef

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/NHibernate/Dialect/SQLiteDialect.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ protected virtual void RegisterFunctions()
114114
else
115115
RegisterFunction("strguid", new SQLFunctionTemplate(NHibernateUtil.String, "cast(?1 as char)"));
116116

117-
// This does not generate a valid uuid, but SelectGUIDString property already uses this.
118-
// See https://www.ietf.org/rfc/rfc4122.txt
119-
// System.Guid does not seem to care about the uuid validity, but this may still cause
120-
// other issues.
121-
RegisterFunction("new_uuid", new SQLFunctionTemplate(NHibernateUtil.Guid, "randomblob(16)"));
122-
123117
// SQLite random function yields a long, ranging form MinValue to MaxValue. (-9223372036854775808 to
124118
// 9223372036854775807). HQL random requires a float from 0 inclusive to 1 exclusive, so we divide by
125119
// 9223372036854775808 then 2 for having a value between -0.5 included to 0.5 excluded, and finally

0 commit comments

Comments
 (0)