mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
In documentation example, use concat_values() instead of concat()
because concat() is a built-in function. Erik Rijkers
This commit is contained in:
parent
f196738534
commit
732808c087
@ -1088,13 +1088,13 @@ SELECT anyleast('abc'::text, 'def');
|
|||||||
abc
|
abc
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
CREATE FUNCTION concat(text, VARIADIC anyarray) RETURNS text AS $$
|
CREATE FUNCTION concat_values(text, VARIADIC anyarray) RETURNS text AS $$
|
||||||
SELECT array_to_string($2, $1);
|
SELECT array_to_string($2, $1);
|
||||||
$$ LANGUAGE SQL;
|
$$ LANGUAGE SQL;
|
||||||
|
|
||||||
SELECT concat('|', 1, 4, 2);
|
SELECT concat_values('|', 1, 4, 2);
|
||||||
concat
|
concat_values
|
||||||
--------
|
---------------
|
||||||
1|4|2
|
1|4|2
|
||||||
(1 row)
|
(1 row)
|
||||||
</screen>
|
</screen>
|
||||||
|
Loading…
Reference in New Issue
Block a user