From 83509835d1deeab056a120d070671192907b6178 Mon Sep 17 00:00:00 2001 From: Harrissou Sant-anna Date: Fri, 21 Feb 2025 15:47:12 +0100 Subject: [PATCH] Mention array_to_string as alternative for string concatenation functions (#9662) Also connect replace and array_replace functions --- docs/user_manual/expressions/functions_list.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/user_manual/expressions/functions_list.rst b/docs/user_manual/expressions/functions_list.rst index b5a853ea069..4fbb49c308e 100644 --- a/docs/user_manual/expressions/functions_list.rst +++ b/docs/user_manual/expressions/functions_list.rst @@ -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 @@ -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