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

From: Constantin Teodorescu <teo(at)flex(dot)ro>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL
Date: 1999-08-11 15:01:21
Message-ID: 37B19041.2FBAA5AE@flex.ro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message David Chays 1999-08-11 18:26:21 ecpg fetch
Previous Message Tom Lane 1999-08-11 14:46:18 Re: [INTERFACES] libpgtcl and array fields return format - PROPOSAL