From: | "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net> |
---|---|
To: | Joshua Kramer <josh(at)globalherald(dot)net> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: DATESTYLE and 0000-00-00 |
Date: | 2005-10-06 18:16:27 |
Message-ID: | 20051006141627.6acdd2c1.darcy@druid.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Thu, 6 Oct 2005 09:01:22 -0400 (EDT)
Joshua Kramer <josh(at)globalherald(dot)net> wrote:
> I have my DATESTYLE set to ISO MDY.
>
> When I try to create a table with a default date of 0000-00-00, psql says
> that this is an invalid date. Why, and can (or how can I) get it to
> accept 0000-00-00 as a valid date?
It is invalid. There was no year 0. Perhaps what you want is NULL or,
possibly, EPOCH if you are looking for a sentinel value.
--
D'Arcy J.M. Cain <darcy(at)druid(dot)net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2005-10-06 18:37:45 | Re: DATESTYLE and 0000-00-00 |
Previous Message | Andrew Sullivan | 2005-10-06 18:15:12 | Re: DATESTYLE and 0000-00-00 |