Re: one other big mysql->postgresql item

From: Fabrice Scemama <fabrice(at)scemama(dot)org>
To:
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: one other big mysql->postgresql item
Date: 2000-12-11 14:24:05
Message-ID: 3A34E385.8D4F5F5D@scemama.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I personnally always use '1111-11-11 11:11:11' for that purpose.
It does work on about any DB.

> George Johnson wrote:
>
> Hi,
>
> Forgot one other biggy:
>
> 0000-00-00 00:00:00
>
> is legal for a default value of '' of a datetime column defined as not
> null.
>
> create table test (
> funkydate datetime not null;
> );
>
> insert into test values ('');
>
> select * from test where funkydate = '0000-00-00 00:00:00';
>
> all those work, in MySQL, and I'm willing to bet a LOT of users have
> code reflecting that.
>
> George Johnson

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Ansley 2000-12-11 14:41:12 RE: Simple Question: Case sensitivity
Previous Message Vince Vielhaber 2000-12-11 14:22:29 Re: Simple Question: Case sensitivity