Re: TEXT blob extraction in ecpg

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: none none <mytofi(at)hotmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: TEXT blob extraction in ecpg
Date: 2005-01-10 21:09:37
Message-ID: 20050110210937.GA5932@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Jan 10, 2005 at 01:02:00PM -0500, none none wrote:

> Does any one know how to properly extract a TEXT type blob (undefined char
> length) in ecpg (Linux system)?

If you don't know how much memory to allocate for a column, you
could use a descriptor area and check RETURNED_OCTET_LENGTH. See
the "Using SQL Descriptor Areas" section in the ECPG documentation.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ron Peterson 2005-01-11 02:14:56 Re: Question about insert/update RULEs.
Previous Message none none 2005-01-10 18:02:00 TEXT blob extraction in ecpg