BUG #6181: concat_ws() incompatibility with MySQL - Mailing list pgsql-bugs

From Itagaki Takahiro
Subject BUG #6181: concat_ws() incompatibility with MySQL
Date
Msg-id 201108291142.p7TBgjiJ027349@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #6181: concat_ws() incompatibility with MySQL
List pgsql-bugs
The following bug has been logged online:

Bug reference:      6181
Logged by:          Itagaki Takahiro
Email address:      itagaki.takahiro@gmail.com
PostgreSQL version: 9.1 RC1 (x86)
Operating system:   Windows 7 (64bit)
Description:        concat_ws() incompatibility with MySQL
Details:

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'], '/')

pgsql-bugs by date:

Previous
From: Alexey Klyukin
Date:
Subject: the '::' cast doesn't work in the FROM clause
Next
From: "Kevin Grittner"
Date:
Subject: Re: the '::' cast doesn't work in the FROM clause