Skip to content

Commit

Permalink
Mention array_to_string as alternative for string concatenation funct…
Browse files Browse the repository at this point in the history
…ions (#9662)

Also connect replace and array_replace functions
  • Loading branch information
DelazJ authored Feb 21, 2025
1 parent ea9911b commit 8350983
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/user_manual/expressions/functions_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1118,14 +1118,15 @@ operators, with some special characteristics:

* When any of the arguments is a NULL value, either ``||`` or ``+`` will
return a NULL value. To return the other arguments regardless the NULL value,
you may want to use the ``concat`` function::
you may want to use the ``concat`` or ``array_to_string`` function::

'My feature id is: ' + NULL ==> NULL
'My feature id is: ' || NULL => NULL
concat('My feature id is: ', NULL) => 'My feature id is: '
array_to_string( array('My feature id is: ', NULL) ) => 'My feature id is: '

further reading: :ref:`expression_function_Operators_concat`,
:ref:`expression_function_Operators_plus`
further reading: :ref:`expression_function_Arrays_array_to_string`,
:ref:`expression_function_Operators_concat`, :ref:`expression_function_Operators_plus`

.. include:: expression_help/String.rst
:start-after: .. end_concat_section
Expand Down Expand Up @@ -1177,7 +1178,8 @@ Further reading: :ref:`expression_function_String_substr`,
:start-after: .. end_regexp_substr_section
:end-before: .. end_replace_section

Further reading: :ref:`expression_function_String_regexp_replace`
Further reading: :ref:`expression_function_String_regexp_replace`,
:ref:`expression_function_Arrays_array_replace`

.. include:: expression_help/String.rst
:start-after: .. end_replace_section
Expand Down

0 comments on commit 8350983

Please sign in to comment.