pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Huh? Data typing bug?
Date: Mon, 04 Jun 2001 21:25:11 -0400
Message-ID: <9352.991704311@sss.pgh.pa.us> (raw)
In-Reply-To: <web-67063@davinci.ethosmedia.com>
References: <web-67063@davinci.ethosmedia.com>

"Josh Berkus" <josh@agliodbs.com> writes:
> 	I just subtracted two dates and got an INT4, rather than the INTERVAL I
> was expecting.  What goes on here?

IIRC, number of days (as an int) is what that's supposed to produce.

If that's not what you wanted, maybe you ought to cast the dates to
timestamp or some such.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <9352.991704311@sss.pgh.pa.us>
Permalink:  ../9352.991704311@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9352.991704311@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com
  Subject: Re: Huh? Data typing bug?
  In-Reply-To: <9352.991704311@sss.pgh.pa.us>

* 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