projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f196738
)
In documentation example, use concat_values() instead of concat()
author
Bruce Momjian
<bruce@momjian.us>
Thu, 17 Feb 2011 17:37:13 +0000
(12:37 -0500)
committer
Bruce Momjian
<bruce@momjian.us>
Thu, 17 Feb 2011 17:37:13 +0000
(12:37 -0500)
because concat() is a built-in function.
Erik Rijkers
doc/src/sgml/xfunc.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/xfunc.sgml
b/doc/src/sgml/xfunc.sgml
index 4f2c23fab7a2780df841112d26c16f9a0df1296d..c65f8522b37519c9ba6b2ea9a18b702ca59a57dd 100644
(file)
--- 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>