pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Itagaki Takahiro <itagaki.takahiro@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6181: concat_ws() incompatibility with MySQL
Date: Mon, 29 Aug 2011 12:27:43 -0400
Message-ID: <23079.1314635263@sss.pgh.pa.us> (raw)
In-Reply-To: <201108291142.p7TBgjiJ027349@wwwmaster.postgresql.org>
References: <201108291142.p7TBgjiJ027349@wwwmaster.postgresql.org>

"Itagaki Takahiro" <itagaki.takahiro@gmail.com> writes:
> For query concat_ws('/', NULL, 'X'),
> PostgreSQL 9.1 returns '/X', but MySQL returns 'X'.

> I think postgres should return 'X' because of compatibility.
> Another reason is that both of the two queries below return 'X'.

> - concat_ws('/', 'X', NULL)
> - array_to_string(ARRAY[NULL, 'X'], '/')

Yeah, I think you're right.  Fortunately it's not too late to change
this without introducing backwards-compatibility issues of our own.
Will fix.

			regards, tom lane



view thread (2+ messages)

Message-ID: <23079.1314635263@sss.pgh.pa.us>
Permalink:  ../23079.1314635263@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23079.1314635263@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, itagaki.takahiro@gmail.com
  Subject: Re: BUG #6181: concat_ws() incompatibility with MySQL
  In-Reply-To: <23079.1314635263@sss.pgh.pa.us>
  References: <201108291142.p7TBgjiJ027349@wwwmaster.postgresql.org> <23079.1314635263@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox