Fix concat() and format() to handle VARIADIC-labeled arguments correctly.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 760f3c043ad4ee622b596d005ec31bb5e0322c4a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-01-25T05:19:56Z
Releases: 9.3.0
Fix concat() and format() to handle VARIADIC-labeled arguments correctly.

Previously, the VARIADIC labeling was effectively ignored, but now these
functions act as though the array elements had all been given as separate
arguments.

Pavel Stehule

Files

PathChange+/−
doc/src/sgml/func.sgml modified +19 −5
doc/src/sgml/xfunc.sgml modified +10 −1
src/backend/utils/adt/varlena.c modified +171 −27
src/test/regress/expected/text.out modified +88 −1
src/test/regress/sql/text.sql modified +22 −1