Skip to content

Commit 9bbb4f3

Browse files
committed
Merge branch '3.4.x'
2 parents fbd528a + 042e60f commit 9bbb4f3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

releasenotes.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,11 @@ Build 3.4.0.CR1
296296
** Task
297297
* [NH-3251] - Update to antlr 3.5.0.2
298298

299+
Build 3.3.4.GA
300+
=============================
301+
302+
** Bug
303+
* [NH-3638] - Mapping-by-code is occasionally picking the wrong column name
299304

300305
Build 3.3.3.SP1
301306
=============================
@@ -323,7 +328,6 @@ BEWARE: In versions prior to 3.3.3.CR1, the handling of the LINQ Take() method
323328

324329
** Bug
325330
* [NH-2408] - SQL Server pessimistic locking syntax incorrect for union-subclass
326-
* [NH-3096] - Linq - does not support GetValueOrDefault()
327331
* [NH-3109] - Rounding float values in aggregate functions with group by statements (MySQL).
328332
* [NH-3324] - HQL: ArgumentNullException when using LEFT OUTER JOIN and SetMaxResults
329333
* [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)