Re: DATESTYLE and 0000-00-00 - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: DATESTYLE and 0000-00-00
Date
Msg-id 20051006183745.GA17388@winnie.fuhr.org
Whole thread Raw
In response to DATESTYLE and 0000-00-00  (Joshua Kramer <josh@globalherald.net>)
List pgsql-sql
On Thu, Oct 06, 2005 at 09:01:22AM -0400, Joshua Kramer 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?

Why do you want to, considering that 0000-00-00 is *not* a valid
date?  Why not use NULL to represent an unknown value?

-- 
Michael Fuhr


pgsql-sql by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: DATESTYLE and 0000-00-00
Next
From: Hector Rosas
Date:
Subject: Selecting records not present in related tables