Skip to content

Commit 042e60f

Browse files
committed
Merge branch '3.3.x' into 3.4.x
2 parents 2e129da + 6ff6073 commit 042e60f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

releasenotes.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Build 3.4.0.CR1
55
##### Possible Breaking Changes #####
66
* [NH-2290] Invalid hql parenthesis expansion in generated sql
77
Unary minus before parentheses in HQL lost the parentheses when translated
8-
to SQL and therefore the wrong value was returned. This use of unary minus is now
9-
implemented in the mathematically correct way.
8+
to SQL and therefore the wrong value was returned. This use of unary minus is now
9+
implemented in the mathematically correct way.
1010

1111

1212
** Sub-task
@@ -63,6 +63,11 @@ Build 3.4.0.CR1
6363
** Task
6464
* [NH-3251] - Update to antlr 3.5.0.2
6565

66+
Build 3.3.4.GA
67+
=============================
68+
69+
** Bug
70+
* [NH-3638] - Mapping-by-code is occasionally picking the wrong column name
6671

6772
Build 3.3.3.SP1
6873
=============================
@@ -90,7 +95,6 @@ BEWARE: In versions prior to 3.3.3.CR1, the handling of the LINQ Take() method
9095

9196
** Bug
9297
* [NH-2408] - SQL Server pessimistic locking syntax incorrect for union-subclass
93-
* [NH-3096] - Linq - does not support GetValueOrDefault()
9498
* [NH-3109] - Rounding float values in aggregate functions with group by statements (MySQL).
9599
* [NH-3324] - HQL: ArgumentNullException when using LEFT OUTER JOIN and SetMaxResults
96100
* [NH-3408] - System.IndexOutOfRangeException when using Contains on a List<byte[]>

src/NHibernate/Mapping/ByCode/PropertyPath.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
namespace NHibernate.Mapping.ByCode
55
{
6+
/// <summary>
7+
/// Immutable value class. By-value equality.
8+
/// </summary>
69
public class PropertyPath
710
{
811
private readonly int hashCode;
@@ -63,7 +66,9 @@ public bool Equals(PropertyPath other)
6366
{
6467
return true;
6568
}
66-
return hashCode == other.GetHashCode();
69+
return (ReferenceEquals(previousPath, null) && ReferenceEquals(other.previousPath, null) ||
70+
!ReferenceEquals(previousPath, null) && previousPath.Equals(other.previousPath)) &&
71+
localMember.Equals(other.localMember);
6772
}
6873

6974
public override int GetHashCode()

0 commit comments

Comments
 (0)