Re: one other big mysql->postgresql item

Поиск
Список
Период
Сортировка
От Fabrice Scemama
Тема Re: one other big mysql->postgresql item
Дата
Msg-id 3A34E385.8D4F5F5D@scemama.org
обсуждение исходный текст
Ответ на one other big mysql->postgresql item  ("George Johnson" <gjohnson@jdsc.com>)
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Robert D. Nelson"
Дата:
Сообщение: RE: storing passwords
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problems with starting Postgres