Skip to content

Commit

Permalink
Clarify wording of eq operator
Browse files Browse the repository at this point in the history
applied to ordered collections of entities

Fixes #1986
  • Loading branch information
ralfhandl committed Sep 12, 2024
1 parent 12c1d4d commit 344dc5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/odata-url-conventions/odata-url-conventions.html
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ <h5 id="51111-equals"><a id="Equals" href="#Equals">5.1.1.1.1 Equals</a></h5>
<p>The <code>eq</code> operator returns <code>true</code> if the left operand is equal to the right operand, otherwise it returns <code>false</code>.</p>
<p>When applied to operands of entity types, the <code>eq</code> operator returns <code>true</code> if both operands represent the same entity, or both operands represent <code>null</code>.</p>
<p>When applied to operands of complex types, the <code>eq</code> operator returns <code>true</code> if both operands have the same structure and same values, or both operands represent <code>null</code>.</p>
<p>When applied to ordered collections, the <code>eq</code> operator returns <code>true</code> if both operands have the same cardinality and each member of the left operand is equal to the corresponding member of the right operand.</p>
<p>When applied to ordered collections, the <code>eq</code> operator returns <code>true</code> if both operands have the same cardinality and each member of the left operand is equal to the member of the right operand at the same index.</p>
<p>For services that support comparing unordered collections, the <code>eq</code> operator returns <code>true</code> if both operands are equal after applying the same ordering on both collections.</p>
<p>Each of the special values <code>null</code>, <code>-INF</code>, and <code>INF</code> is equal to itself, and only to itself.</p>
<p>The special value <code>NaN</code> is not equal to anything, even to itself.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/odata-url-conventions/odata-url-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ operands represent `null`.

When applied to ordered collections, the `eq` operator returns `true` if
both operands have the same cardinality and each member of the left
operand is equal to the corresponding member of the right operand.
operand is equal to the member of the right operand at the same index.

For services that support comparing unordered collections, the `eq`
operator returns `true` if both operands are equal after applying the same
Expand Down
2 changes: 1 addition & 1 deletion odata-url-conventions/5 Query Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ operands represent `null`.

When applied to ordered collections, the `eq` operator returns `true` if
both operands have the same cardinality and each member of the left
operand is equal to the corresponding member of the right operand.
operand is equal to the member of the right operand at the same index.

For services that support comparing unordered collections, the `eq`
operator returns `true` if both operands are equal after applying the same
Expand Down

0 comments on commit 344dc5c

Please sign in to comment.