one other big mysql->postgresql item

From: "George Johnson" <gjohnson(at)jdsc(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: one other big mysql->postgresql item
Date: 2000-12-11 04:28:06
Message-ID: 001d01c0632a$c25fac00$0300a8c0@jdsc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Roderick A. Anderson 2000-12-11 04:52:22 Re: Article involving Postgresql
Previous Message George Johnson 2000-12-11 04:23:34 mysql issues