Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 84EC6B5DCC0 for ; Mon, 29 Aug 2011 08:42:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 13341-07 for ; Mon, 29 Aug 2011 11:42:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id A158CB5DCC4 for ; Mon, 29 Aug 2011 08:42:46 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p7TBgjjp027350 for ; Mon, 29 Aug 2011 11:42:45 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p7TBgjiJ027349; Mon, 29 Aug 2011 11:42:45 GMT (envelope-from www) Date: Mon, 29 Aug 2011 11:42:45 GMT Message-Id: <201108291142.p7TBgjiJ027349@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6181: concat_ws() incompatibility with MySQL From: "Itagaki Takahiro" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201108/166 X-Sequence-Number: 30978 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'], '/')