Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL - Mailing list pgsql-interfaces

From Constantin Teodorescu
Subject Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL
Date
Msg-id 37B19041.2FBAA5AE@flex.ro
Whole thread Raw
In response to Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL
Next
From: David Chays
Date:
Subject: ecpg fetch