libpgtcl and array fields return format - PROPOSAL

Поиск
Список
Период
Сортировка
От Constantin Teodorescu
Тема libpgtcl and array fields return format - PROPOSAL
Дата
Msg-id 37B1178F.1BDFB003@flex.ro
обсуждение исходный текст
Ответы Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL
Список pgsql-interfaces
Hi,

In libpgtcl, pg_select an array field is return as the following string:

{"red","blue","green"}

and it's rather difficult to process them as a normal tcl list.
The same thing for pg_exec, pg_result/tupleArray

I think it would be better to return the string as:

"red" "blue" "green"

and tcl users could directly process the array as an ordinary tcl list.

As far as I know, arrays are not heavily used by libpgtcl users (thought
it's an interesting feature) so changing format would not affect too
many applications but will encourage array field usage in future.

What do you think?

Constantin Teodorescu
FLEX Consulting Braila, ROMANIA


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

Предыдущее
От: Spirou
Дата:
Сообщение: PgAccess and arrays
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: [HACKERS] libpgtcl and array fields return format - PROPOSAL