Re: what is good solution for support NULL inside string_to_array function?
От
Pavel Stehule
Тема
Re: what is good solution for support NULL inside
string_to_array function?
Дата
Msg-id
x2w162867791005040453tc5c7ef5z9fd5711ffe457457@mail.gmail.com
Ответ на
Список
Дерево обсуждения
what is good solution for support NULL inside string_to_array
function? Pavel Stehule <pavel.stehule@gmail.com>
Re: what is good solution for support NULL inside string_to_array
function? Josh Berkus <josh@agliodbs.com>
Re: what is good solution for support NULL inside string_to_array function? Tom Lane <tgl@sss.pgh.pa.us>
Re: what is good solution for support NULL inside string_to_array
function? Andrew Dunstan <andrew@dunslane.net>
Re: what is good solution for support NULL inside string_to_array
function? Steve Crawford <scrawford@pinpointresearch.com>
Re: what is good solution for support NULL inside
string_to_array function? Pavel Stehule <pavel.stehule@gmail.com>
Re: what is good solution for support NULL inside
string_to_array function? Pavel Stehule <pavel.stehule@gmail.com>
Re: what is good solution for support NULL inside
string_to_array function? Merlin Moncure <mmoncure@gmail.com>
Re: what is good solution for support NULL inside
string_to_array function? Pavel Stehule <pavel.stehule@gmail.com>
Re: what is good solution for support NULL inside
string_to_array function? Pavel Stehule <pavel.stehule@gmail.com>
2010/5/4 Josh Berkus : > >> quietly removing NULL is maybe good for compatibility but is wrong for >> functionality. > > I agree. I wasn't aware of this little misfeature. > > Default display for NULL should be a zero-length string. > I disagree - NULL is NULL, not empty string (Oracle is different) if array_to_string is equivalent to x[1] || sep || x[2] || sep || x[3] || sep .... then correct result is NULL and then string_to_array and array_to_string are correct, because string_to_array cannot contain any NULL symbol. Regards Pavel Stehule > -- > -- Josh Berkus > PostgreSQL Experts Inc. > http://www.pgexperts.com >
В списке pgsql-hackers по дате отправления