timestamp/date in ecpg

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: PostgreSQL Hacker <pgsql-hackers(at)postgresql(dot)org>
Subject: timestamp/date in ecpg
Date: 2003-03-20 16:02:18
Message-ID: 20030320160218.GA10537@feivel.fam-meskes.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.

Michael
--
Michael Meskes
Email: Michael(at)Fam-Meskes(dot)De
ICQ: 179140304
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2003-03-20 16:03:57 Re: [INTERFACES] Roadmap for FE/BE protocol redesign
Previous Message Jason Hihn 2003-03-20 15:57:29 Re: PostgreSQL flamage on Slashdot