Skip to content

Commit fbd449c

Browse files
authored
Add note about NULLIF result type (#3192)
Resolves #3185
1 parent 61b921b commit fbd449c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/reference/reference_sql/sql_statements_and_clauses.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3497,6 +3497,13 @@ Examples:
34973497
* ``NULLIF('a', 'A')`` is 'a'.
34983498
* ``NULLIF(1.00, 1)`` is NULL.
34993499

3500+
.. note::
3501+
3502+
Before :doc:`/release/2.10.4`, the type of the result was always ``SCALAR``.
3503+
Since :doc:`/release/2.10.4`, the result of ``NULLIF`` matches the type of the first argument.
3504+
If the first argument is the ``NULL`` literal, then the result has the ``SCALAR`` type.
3505+
3506+
35003507
.. _sql_function_position:
35013508

35023509
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

0 commit comments

Comments
 (0)