From: Tom Lane <tgl@sss.pgh.pa.us>
To: kaiq@realtyideas.com
Cc: Thomas Lockhart <lockhart@alumni.caltech.edu>
Cc: Karel Zak - Zakkr <zakkr@zf.jcu.cz>
Cc: Andy Lewis <alewis@roundnoon.com>
Cc: pgsql-hackers <pgsql-hackers@postgreSQL.org>
Cc: pgsql-sql <pgsql-sql@postgreSQL.org>
Subject: Re: Datetime operators (was: Re: [SQL] Another Date question)
Date: Fri, 03 Dec 1999 17:35:58 -0500
Message-ID: <3219.944260558@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.10.9912031336300.13298-100000@picasso.realtyideas.com>
<kaiq@realtyideas.com> writes:
> why
> create table mymy (mydate datetime default (now() + '60 days'::timespan ));
> does not work?
I believe :: casts are broken in default expressions in 6.5.*. They are
fixed in current sources (which is what Thomas probably tried) --- but
in the meantime, that expression will work fine without the cast...
regards, tom lane
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: tgl@sss.pgh.pa.us, kaiq@realtyideas.com, lockhart@alumni.caltech.edu, zakkr@zf.jcu.cz, alewis@roundnoon.com, pgsql-hackers@postgreSQL.org
Subject: Re: Datetime operators (was: Re: [SQL] Another Date question)
In-Reply-To: <3219.944260558@sss.pgh.pa.us>
References: <Pine.LNX.4.10.9912031336300.13298-100000@picasso.realtyideas.com> <3219.944260558@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