Re: ECPG - Timestamp to ascii Conversion PG version 7.4

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Don Laurine <donald(dot)laurine(at)noaa(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ECPG - Timestamp to ascii Conversion PG version 7.4
Date: 2005-05-06 20:49:49
Message-ID: 20050506204949.GA15070@1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, May 05, 2005 at 11:07:10AM -0700, Don Laurine wrote:
> We are currently transitioning to Postgresql 7.4 from Informix. IN ECPG,
> is there a Postgresql function which will convert the timestamp data
> type to a string equivalent. INFORMIX has the dtcvasc function but I
> prefer not to use the -C compatibility option. I rather have a complete
> port and get away from INFORMIX.

There is. You can use PGTYPEStimestamp_from_asc instead. You just have
to link against pgtypeslib.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Aaron Steele 2005-05-06 20:51:45 inherit with foreign key reference
Previous Message Tom Lane 2005-05-06 20:46:11 Re: pg_ctl bug or feature?