Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f551ueE13080 for ; Mon, 4 Jun 2001 21:56:40 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 67096; Mon, 04 Jun 2001 18:56:36 -0700 From: "Josh Berkus" Subject: Re: Huh? Data typing bug? To: Tom Lane Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Mon, 04 Jun 2001 18:56:36 -0700 Message-ID: In-Reply-To: <9352.991704311@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200106/32 X-Sequence-Number: 3235 Tom, > 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. I see. It was never made clear to me that here the DATE type differs from DATETIME and TIMESTAMP significantly. This makes some sort of sense, now. Correct me if I'm wrong: DATE + INT4 = DATE DATE - DATE = INT4 But: DATETIME + INTERVAL = DATETIME DATETIME - DATETIME = INTERVAL -Josh ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco