get Timestamp with PQgetvalue()... - Mailing list pgsql-interfaces

From Raghu Bhai Chalasani
Subject get Timestamp with PQgetvalue()...
Date
Msg-id Pine.GSO.4.21.0102281756060.5921-100000@rac2.wam.umd.edu
Whole thread Raw
Responses Re: get Timestamp with PQgetvalue()...  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-interfaces
Hi,

I am trying to get the Timestamp in const char * format with PQgetvalue
but I am unsuccesful in doing that. When I did:

string s = PQgetvalue(connection.result, 0,2);
cout << "TimeStamp: " << s << endl;

I am getting some junk value. I have looked at all the manuals online and
searched on internet but couldn't find anything. Can someone please shed
some light on me about it? :-)

Thanks,
Raghu Chalasani



pgsql-interfaces by date:

Previous
From: Manika dey
Date:
Subject: large object descriptor
Next
From: Igor Hribik
Date:
Subject: Problems with JDB Driver.