Re: BUG #6181: concat_ws() incompatibility with MySQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6181: concat_ws() incompatibility with MySQL
Дата
Msg-id 23079.1314635263@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #6181: concat_ws() incompatibility with MySQL  ("Itagaki Takahiro" <itagaki.takahiro@gmail.com>)
Список pgsql-bugs
"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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Alexey Klyukin
Дата:
Сообщение: Re: the '::' cast doesn't work in the FROM clause
Следующее
От: Tom Lane
Дата:
Сообщение: Re: the '::' cast doesn't work in the FROM clause