| From: | darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain) |
|---|---|
| To: | brad(at)bradm(dot)net (Bradley McLean) |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: ALTER TABLE ADD COLUMN can't use NOT NULL? |
| Date: | 2001-11-13 12:36:44 |
| Message-ID: | 20011113123644.79B531A6B@druid.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Thus spake Bradley McLean
> 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?
Are you sure? I seem to recall that it was accepted but the constraint
was simply ignored. I thought that the recent change was just that it
rejected the attempt.
--
D'Arcy J.M. Cain <darcy(at){druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Brent Verner | 2001-11-13 12:51:34 | Re: Quick question |
| Previous Message | Christopher Kings-Lynne | 2001-11-13 10:00:59 | Quick question |