pgsql: Fix concat_ws() to not insert a separator after leading NULL arg

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix concat_ws() to not insert a separator after leading NULL arg
Date: 2011-08-29 19:21:51
Message-ID: E1Qy7P5-0000dJ-OX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix concat_ws() to not insert a separator after leading NULL argument(s).

Per bug #6181 from Itagaki Takahiro. Also do some marginal code cleanup
and improve error handling.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/579577320ef449442f804043a67ce5c13d679679

Modified Files
--------------
src/backend/utils/adt/varlena.c | 34 +++++++++++++++++++++++-----------
1 files changed, 23 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-08-29 23:52:29 pgsql: Replace obsolete AC_LANG_FUNC_LINK_TRY autoconf macro.
Previous Message Tom Lane 2011-08-29 17:18:53 pgsql: Use a non-locking test in TAS_SPIN() on all IA64 platforms.