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

From Peter Eisentraut
Subject Re: get Timestamp with PQgetvalue()...
Date
Msg-id Pine.LNX.4.30.0103021733100.775-100000@peter.localdomain
Whole thread Raw
In response to get Timestamp with PQgetvalue()...  (Raghu Bhai Chalasani <chalasar@wam.umd.edu>)
List pgsql-interfaces
Raghu Bhai Chalasani writes:

> 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;

char * s = PGgetvalue(...);

>
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-interfaces by date:

Previous
From: Peter T Mount
Date:
Subject: Re: JDBC error codes to detect duplicates?
Next
From: "Jesus Ruiz"
Date:
Subject: Problem compiling PERL