From: | Christoph Haller <ch(at)rodos(dot)fzk(dot)de> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | meskes(at)postgresql(dot)org |
Subject: | Re: timestamp/date in ecpg |
Date: | 2003-03-21 13:44:07 |
Message-ID: | 3E7B1726.3E2C4FA9@rodos.fzk.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>
> I started working on date/timestamp in ecpg. So far I can read date
> types from the DB and I can insert date into the DB. However there
seems
> to be a bug in converting timestamp to ascii or vice versa.
>
> If anyone of you knows more about timestamp2tm etc. could you please
> have a look at function PGTYPEStimestamp_ttoa in
pgtypeslib/timestamp.c?
>
> Hmm, maybe the transformation in the other direction is the culprit.
> What I do is call ts1 = PGTYPEStimestamp_atot("2000-7-12 17:34:29",
NULL); followed by a text = PGTYPEStimestamp_ttoa
(ts1); Needless to say the resulting text is not "2000-7-12 17:34:29".
:-(
>
> Maybe some of you have an idea.
>
I am willing to have a look at the functions, but am failing in finding
directory pgtypeslib/ within $PGSQLD (version 7.3.2).
Regards, Christoph
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2003-03-21 13:54:22 | Re: Roadmap for FE/BE protocol redesign |
Previous Message | Vadim Mikheev | 2003-03-21 07:35:52 | Re: Nested transactions: low level stuff |