Skip to content

Commit

Permalink
TC 2025-02-26
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Feb 27, 2025
1 parent 4c0ff19 commit ac04574
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions docs/odata-url-conventions/odata-url-conventions.html
Original file line number Diff line number Diff line change
Expand Up @@ -1873,10 +1873,10 @@ <h4 id="51112-conditional-operators"><a id="ConditionalOperators" href="#Conditi
<details open><summary>
<h5 id="511121-case"><a id="case" href="#case">5.1.1.12.1 <code>case</code></a></h5>
</summary>
<p>The <code>case</code> function has the following signature:</p>
<p>The <code>case</code> operator has a comma-separated lists of arguments:</p>
<pre><code>expression case(Edm.Boolean:expression, …, Edm.Boolean:expression)</code></pre>
<p>Each parameter is a pair of expressions separated by a colon (<code>:</code>), where the first expression — the condition — MUST be a Boolean expression, and the second expression — the result — may evaluate to any type.</p>
<p>The case function evaluates the condition in each pair, starting with the leftmost pair, and stops as soon as a condition evaluates to <code>true</code>. It then returns the value of the result of this pair. It returns <code>null</code> if none of the conditions in any pair evaluates to <code>true</code>. Clients can specify a last pair whose condition is <code>true</code> to get a non-<code>null</code> “default/else/otherwise” result.</p>
<p>Each argument is a pair of expressions separated by a colon (<code>:</code>), where the first expression — the condition — MUST be a Boolean expression, and the second expression — the result — may evaluate to any type.</p>
<p>The <code>case</code> operator evaluates the condition in each pair, starting with the leftmost pair, and stops as soon as a condition evaluates to <code>true</code>. It then returns the value of the result of this pair. It returns <code>null</code> if none of the conditions in any pair evaluates to <code>true</code>. Clients can specify a last pair whose condition is <code>true</code> to get a non-<code>null</code> “default/else/otherwise” result.</p>
<p>Boolean expressions containing <code>DateTimeOffset</code> or <code>TimeOfDay</code> literals without the optional seconds part will introduce ambiguity for parsers. Clients SHOULD use whitespace or parentheses to avoid ambiguity.</p>
<p>Clients SHOULD ensure that the results in all pairs are compatible. If all results are of the same type, the type of the <code>case</code> expression is of that type. If all results are of numeric type, then the type of the <code>case</code> expression is a numeric type capable of representing any of these expressions according to standard type promotion rules.</p>
<p>Services MAY support <code>case</code> expressions containing parameters of incompatible types, in which case the case expression is treated as <code>Edm.Untyped</code> and its value has the type of the parameter expression selected by the case statement.</p>
Expand Down
6 changes: 3 additions & 3 deletions docs/odata-url-conventions/odata-url-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3032,18 +3032,18 @@ parameter in the coordinate reference system signified by its SRID.

##### <a id="case" href="#case">5.1.1.12.1 `case`</a>

The `case` function has the following signature:
The `case` operator has a comma-separated lists of arguments:

```
expression case(Edm.Boolean:expression, …, Edm.Boolean:expression)
```

Each parameter is a pair of expressions separated by a colon (`:`),
Each argument is a pair of expressions separated by a colon (`:`),
where the first expression --- the condition --- MUST be a Boolean
expression, and the second expression --- the result --- may evaluate to
any type.

The case function evaluates the condition in each pair, starting with
The `case` operator evaluates the condition in each pair, starting with
the leftmost pair, and stops as soon as a condition evaluates to `true`.
It then returns the value of the result of this pair. It returns `null`
if none of the conditions in any pair evaluates to `true`. Clients can
Expand Down
6 changes: 3 additions & 3 deletions odata-url-conventions/5 Query Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -1460,18 +1460,18 @@ parameter in the coordinate reference system signified by its SRID.

##### ##subsubsubsubsec `case`

The `case` function has the following signature:
The `case` operator has a comma-separated lists of arguments:

```
expression case(Edm.Boolean:expression, …, Edm.Boolean:expression)
```

Each parameter is a pair of expressions separated by a colon (`:`),
Each argument is a pair of expressions separated by a colon (`:`),
where the first expression --- the condition --- MUST be a Boolean
expression, and the second expression --- the result --- may evaluate to
any type.

The case function evaluates the condition in each pair, starting with
The `case` operator evaluates the condition in each pair, starting with
the leftmost pair, and stops as soon as a condition evaluates to `true`.
It then returns the value of the result of this pair. It returns `null`
if none of the conditions in any pair evaluates to `true`. Clients can
Expand Down

0 comments on commit ac04574

Please sign in to comment.