Skip to content

Commit 1f111cd

Browse files
committed
releasenotes.txt: NH-3846, NH-3901, NH-3918
1 parent f14d947 commit 1f111cd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

releasenotes.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ Build 4.1.0.CR1
22
=============================
33

44
##### Possible Breaking Changes #####
5-
Possible breaking change: Proxies for classes that used lazy fields (not collections)
5+
Proxies for classes that used lazy fields (not collections)
66
would have any exceptions from the entity wrapped in TargetInvocationException. This
77
wrapping exception have now been removed. Where relevant, you should instead catch
88
the original exception type you throw.
99

10+
For LINQ queries, the startAt parameter and the return value for string.IndexOf() are
11+
now correctly translated from .Net's 0-based indexing to SQL's 1-based indexing. LINQ
12+
queries that are written to expect SQL semantics for IndexOf() will likely need to be
13+
asjusted (NH-3846, NH-3901).
14+
Example: A LINQ query should now use 'x=>x.Name.IndexOf("a") == -1' to pick objects where
15+
the name doesn't contain the letter "a".
16+
1017
** Bug
1118
* [NH-2038] - No substring length check in RemoveAsAliasesFromSql
1219
* [NH-2127] - NHibernate cannot convert from decimal to int64 during OutputParamReturningDelegate.ExecuteAndExtract
@@ -67,7 +74,10 @@ Build 4.1.0.CR1
6774
* [NH-3904] - Passing a user type instance as a constant parameter in a linq expression fails.
6875
* [NH-3909] - Regression on join following refactoring of NH-3801
6976
* [NH-3917] - SQLite Dialect does not specify any keywords except 'int'
70-
* [NH-3912] - Batch operations with the same IBatcher instance fail on expect rows count after single failed operation (Oracle)
77+
* [NH-3912] - Batch operations with the same IBatcher instance fail on expect rows count after single failed operation (Oracle)
78+
* [NH-3846] - Off-by-one error: LINQ to SQL of 'startIndex' (2nd) parameter - 'IndexOf()' to 'CharIndex()'
79+
* [NH-3901] - IndexOf doesn't translate into 0-based index
80+
* [NH-3918] - Select Expressions Cache Entities
7181

7282
** New Feature
7383
* [NH-1262] - Cascade of "all-delete-orphan" not supported for one-to-one

0 commit comments

Comments
 (0)