I have a timestamp in a database that is beeing
returned in pgAdmin as "2005-06-21 11:21:47", exactly
as entered. When i retrieve the field via PQgetvalue i
get 8 bytes worth of data that i can not interpret.
ColumnType is TIMESTAMPOID, and the field content is
binary, size is 8 bytes, also all as expected.
I expect the timestamp format to be a float8 type
containing the seconds elapsed sind the 1.1.2000. This
should roughly be something around 172668107, give and
take a few timezone adjustments. What i get back from
PQgetvalue is the following array of bytes:
Handling these bytes like a double (i.e adjusting them
for network byteorder), returns a value of
But no matter how i order these bytes, i cannot make
sense of them.
Platform is Win32, Postgres was installed from binary
distribution. Does anyone have a hint ?
Many thanks in advance,
Rekindle the Rivalries. Sign up for Fantasy Football
pgsql-novice by date
|Next:||From: operationsengineer1||Date: 2005-06-21 18:11:01|
|Subject: pgsql error interpretation issue.|
|Previous:||From: alex||Date: 2005-06-21 06:08:08|
|Subject: problem with pg_ctl|