Skip to content

Commit f24b17f

Browse files
authored
Merge pull request #10438 from pijuskri/dat/oql-equals-null
Correct statement about equal NULL expression handling in OQL
2 parents a8c11b9 + a1183a4 commit f24b17f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/en/docs/refguide/modeling/domain-model/oql/oql-expression-syntax.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,10 @@ The operator throws an error in PostgresSQL and SQL Server when one of the opera
270270

271271
#### = (Equal To)
272272

273-
Returns `TRUE` if both `expression` inputs are equal. When used with `NULL`, it will always return a `FALSE` result. To compare to `NULL` values, use the [IS](#is-operator) operator.
273+
Returns `TRUE` if both `expression` inputs are equal.
274+
275+
When used with a `NULL` literal or a parameter with a `NULL` value, the condition will be converted to use the [IS NULL](#is-operator) operator.
276+
In other cases when comparing to a `NULL` value, it will always return a `FALSE` result.
274277

275278
{{% alert color="info" %}}
276279
Note that `DECIMAL` values have to match exactly. Use [`ROUND`](#round) to compare with less precision.

0 commit comments

Comments
 (0)