pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Glen and Rosanne Eustace <agree@godzone.net.nz>
To: pgsql-sql@postgresql.org
Subject: Problem with Dates
Date: Thu, 25 Jan 2001 08:49:27 +1300
Message-ID: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz> (raw)

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




view thread (19+ messages)  latest in thread

Message-ID: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz>
Permalink:  ../00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz/
Also on:    postgresql.org/message-id/00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: agree@godzone.net.nz
  Subject: Re: Problem with Dates
  In-Reply-To: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz>
  References: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox