Re: C++: get value for integral types? - Mailing list pgsql-general

From Frank Miles
Subject Re: C++: get value for integral types?
Date
Msg-id Pine.A41.4.44.0211101452560.113104-100000@homer28.u.washington.edu
Whole thread Raw
In response to C++: get value for integral types?  (Vassil Kriakov <vassilk@yahoo.com>)
Responses Re: C++: get value for integral types?
List 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


pgsql-general by date:

Previous
From: Justin Clift
Date:
Subject: Re: Upgrading from 7.1.3 to 7.2.3
Next
From: "Aurangzeb M. Agha"
Date:
Subject: Re: Upgrading from 7.1.3 to 7.2.3