one other big mysql->postgresql item - Mailing list pgsql-general

From George Johnson
Subject one other big mysql->postgresql item
Date
Msg-id 001d01c0632a$c25fac00$0300a8c0@jdsc
Whole thread Raw
Responses Re: one other big mysql->postgresql item
List pgsql-general
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

pgsql-general by date:

Previous
From: "Roderick A. Anderson"
Date:
Subject: Re: Article involving Postgresql
Next
From: Vince Vielhaber
Date:
Subject: Re: Simple Question: Case sensitivity