Skip to content

Commit 7b8de11

Browse files
author
Andras Palinkas
committed
Doc updates on LOCATE and CONCAT edge cases.
1 parent 8c41ce3 commit 7b8de11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/sql/functions/string.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ CONCAT(
107107

108108
*Output*: string
109109

110-
*Description*: Returns a character string that is the result of concatenating `string_exp1` to `string_exp2`. If one of the string is `NULL`, the other string will be returned.
110+
*Description*: Returns a character string that is the result of concatenating `string_exp1` to `string_exp2`. `NULL` input strings are treated as empty strings.
111111

112112
[source, sql]
113113
--------------------------------------------------
@@ -228,7 +228,7 @@ LOCATE(
228228

229229
*Output*: integer
230230

231-
*Description*: Returns the starting position of the first occurrence of `pattern` within `source`. The search for the first occurrence of `pattern` begins with the first character position in `source` unless the optional argument, `start`, is specified. If `start` is specified, the search begins with the character position indicated by the value of `start`. The first character position in `source` is indicated by the value 1. If `pattern` is not found within `source`, the value 0 is returned.
231+
*Description*: Returns the starting position of the first occurrence of `pattern` within `source`. The optional `start` specifies the character position to start the search with. The first character position in `source` is indicated by the value 1. Not specifying `start` or specifying it as `NULL`, any negative value, 0 or 1, starts the search at the first character position. If `pattern` is not found within `source`, the value 0 is returned.
232232

233233
[source, sql]
234234
--------------------------------------------------

0 commit comments

Comments
 (0)