Commit 732808c0 authored by Bruce Momjian's avatar Bruce Momjian

In documentation example, use concat_values() instead of concat()

because concat() is a built-in function.

Erik Rijkers
parent f1967385
...@@ -1088,13 +1088,13 @@ SELECT anyleast('abc'::text, 'def'); ...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment