array problem with double quotes

Поиск
Список
Период
Сортировка
От Olivier Leprêtre
Тема array problem with double quotes
Дата
Msg-id 5bc34756.1c69fb81.22161.822d@mx.google.com
обсуждение исходный текст
Ответы Re: array problem with double quotes  (Joe Conway <mail@joeconway.com>)
Список pgsql-sql

Hi,

 

Is there a way to create arrays without postgres adding double quotes when there are commas ?

 

select v1,v2 from (values ('co',array[['ab'],['ab,da']])) sub (v1,v2)

 

returns

"v1";"v2"

"co";"{{ab},{"ab,da"}}"

 

where I wanted

 

"co";"{{ab},{ab,da}}"

 

to match with the result of an array_agg which returns {ab,da}

 

In my case I then can't have {ab,da} @> {"ab,da"}

 

 

Thanks,

 

Olivier


Garanti sans virus. www.avast.com

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: remove from list?
Следующее
От: Joe Conway
Дата:
Сообщение: Re: array problem with double quotes