Skip to content

Commit 6823bc4

Browse files
committed
Merge pull request #365 from LordJZ/patch-1
Fixed PropertyExpression.ToString when RHS is a projection
2 parents d206ac0 + 4c31609 commit 6823bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Criterion/PropertyExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public override TypedValue[] GetTypedValues(ICriteria criteria, ICriteriaQuery c
124124
/// <summary></summary>
125125
public override string ToString()
126126
{
127-
return (_lhsProjection ?? (object)_lhsPropertyName) + Op + _rhsPropertyName;
127+
return (_lhsProjection ?? (object)_lhsPropertyName) + Op + (_rhsProjection ?? (object)_rhsPropertyName);
128128
}
129129

130130
public override IProjection[] GetProjections()

0 commit comments

Comments
 (0)