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

From: "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: C++: get value for integral types?
Date: 2002-11-12 06:35:05
Message-ID: 3DD0EE71.4283.3567A75@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11 Nov 2002 at 11:44, Vassil Kriakov wrote:

> It makes me very uneasy doing a (int *) on char* PQgetvalue(...) just
> because i EXPECT it to give me an int type. And of course the question
> of user-defined types!?

I went thr. the entire thread quoted in this mail. One thing I don't understand
is casting int* on a string.

I always did an atoi(PQgetvalue()). I thought that was the way. What's the
problem exactly?

Dunno about binary tuples. Never used it..

Bye
Shridhar

--
Tussman's Law: Nothing is as inevitable as a mistake whose time has come.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Don Felgar 2002-11-12 09:21:47 No primary key in pg_shadow
Previous Message Bruce Momjian 2002-11-12 05:09:27 Re: Win2K Questions