Problem with Dates

From: "Glen and Rosanne Eustace" <agree(at)godzone(dot)net(dot)nz>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Problem with Dates
Date: 2001-01-24 19:49:27
Message-ID: 00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I am using 7.0.3,
I have a column tstamp defined to be 'date';

With a current value of '31-12-2000',
if I update tstamp=tstamp+'1 year'::timespan
I get '1-1-2002'

Is this what is supposed to occur.
If this isn't the right way to do this, how should it be done ?

Thanks
--
Glen and Rosanne Eustace,
GodZone Internet Services, a division of AGRE Enterprises Ltd.,
P.O. Box 8020, Palmerston North, New Zealand
Ph: +64 6 357 8168, Mobile: +64 21 424 015

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2001-01-24 20:30:18 Re: Making a foreign key chain - good idea or bad idea?
Previous Message Albert REINER 2001-01-24 19:36:39 Re: unreferenced primary keys: garbage collection