Re: C++: get value for integral types?

From: Frank Miles <fpm(at)u(dot)washington(dot)edu>
To: vassil(at)cyberdude(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: C++: get value for integral types?
Date: 2002-11-10 22:56:30
Message-ID: Pine.A41.4.44.0211101452560.113104-100000@homer28.u.washington.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, 10 Nov 2002, Vassil Kriakov wrote:

> Does anyone know whether it is possible to get a tuple's value as an
> int, float, bool, etc. using the C++ postgresql library?
>
> Getting floats as string representations (via char* GetValue(...)) of
> the value is not acceptable! Using strings and streams to convert the
> values to the corresponding integral type may cause problems!
>
> Any ideas, workarounds? Is BinaryTuples really not implemnted yet?

Doesn't the C++ version work? Have you DECLAREd a binary cursor and
used FETCH to get the data? (It works with libpq)

HTH--

-frank

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Aurangzeb M. Agha 2002-11-10 22:59:58 Re: Upgrading from 7.1.3 to 7.2.3
Previous Message Justin Clift 2002-11-10 19:44:43 Re: Upgrading from 7.1.3 to 7.2.3