postgres.git / summary / log / commit / refs

commit    732808c087a84feed4749ab1e8a63ceeefcf449f
Author:   Bruce Momjian <bruce@momjian.us>
Date:     Thu Feb 17 17:37:13 2011 +0000

    In documentation example, use concat_values() instead of concat()
    because concat() is a built-in function.
    
    Erik Rijkers


doc/src/sgml/xfunc.sgml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml index 4f2c23fab7a..c65f8522b37 100644 --- a/doc/src/sgml/xfunc.sgml +++ b/doc/src/sgml/xfunc.sgml @@ -1088,13 +1088,13 @@ SELECT anyleast('abc'::text, 'def'); abc (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); $$ LANGUAGE SQL; -SELECT concat('|', 1, 4, 2); - concat --------- +SELECT concat_values('|', 1, 4, 2); + concat_values +--------------- 1|4|2 (1 row) </screen> [parent: f196738534ba]