date/time problem in v6.5.3 and 7.0.0 ...

From: The Hermit Hacker <scrappy(at)hub(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: date/time problem in v6.5.3 and 7.0.0 ...
Date: 2000-01-15 02:02:39
Message-ID: Pine.BSF.4.21.0001142201470.46499-100000@thelab.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I can add days to now(), but not subtract?

=====================================

template1=> select now() + '30 days';
?column?
------------------------------
Sun Feb 13 22:00:33 2000 AST
(1 row)

template1=> select now() - '30 days';
ERROR: Unable to identify an operator '-' for types 'timestamp' and 'unknown'
You will have to retype this query using an explicit cast
template1=> select version();
version
---------------------------------------------------------------------
PostgreSQL 7.0.0 on i386-unknown-freebsd4.0, compiled by gcc 2.95.2
(1 row)

Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy(at)hub(dot)org secondary: scrappy(at){freebsd|postgresql}.org

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Don Baccus 2000-01-15 02:12:56 Re: [HACKERS] date/time problem in v6.5.3 and 7.0.0 ...
Previous Message Mike Mascari 2000-01-14 23:31:17 Re: [HACKERS] descriptions on operators