Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL

Поиск
Список
Период
Сортировка
От Constantin Teodorescu
Тема Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL
Дата
Msg-id 37B19041.2FBAA5AE@flex.ro
обсуждение исходный текст
Ответ на Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
Tom Lane wrote:
> 
> As you noticed later, there is some optional TCL_ARRAYS code that
> purports to do something like this, but I think it's pretty broken.
> 
> What seems like it would be fairly safe is to introduce separate Tcl
> functions that convert between Postgres array format and Tcl list
> format, and leave it to the user to apply these functions to data that
> he knows is arrays...

This is a better idea. I have recompiled libpgtcl with TCL_ARRAYS and
noticed that you can fool it by sending a string field formatted as an
array and he makes the translation into the list. Not good :-(

-- 
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL
Следующее
От: David Chays
Дата:
Сообщение: ecpg fetch