pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: none none <mytofi@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: TEXT blob extraction in ecpg
Date: Mon, 10 Jan 2005 14:09:37 -0700
Message-ID: <20050110210937.GA5932@winnie.fuhr.org> (raw)
In-Reply-To: <BAY16-F20F0774559602B56AAF190CF970@phx.gbl>
References: <BAY16-F20F0774559602B56AAF190CF970@phx.gbl>

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/



view thread (2+ messages)

Message-ID: <20050110210937.GA5932@winnie.fuhr.org>
Permalink:  ../20050110210937.GA5932@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050110210937.GA5932@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, mytofi@hotmail.com
  Subject: Re: TEXT blob extraction in ecpg
  In-Reply-To: <20050110210937.GA5932@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox