ALTER TABLE ADD COLUMN can't use NOT NULL?

Поиск
Список
Период
Сортировка
От Bradley McLean
Тема ALTER TABLE ADD COLUMN can't use NOT NULL?
Дата
Msg-id 20011112113205.A5838@bradm.net
обсуждение исходный текст
Ответы Re: ALTER TABLE ADD COLUMN can't use NOT NULL?
Re: ALTER TABLE ADD COLUMN can't use NOT NULL?
Список pgsql-hackers
In the CVS tip from this morning:

a123=# alter table test add test1 int4 not null;
ERROR:  Adding NOT NULL columns is not implemented.       Add the column, then use ALTER TABLE ADD CONSTRAINT.
a123=# alter table test add test1 int4 null;
ALTER
a123=#

I'm pretty sure the first one used to work just fine.  Is this
intentional breakage?

-Brad


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