Re: [GENERAL] Explicitly inserting NULL values into NOT NULL DEFAULT 0 columns

2011-11-21 Thread Scott Marlowe
On Mon, Nov 21, 2011 at 5:27 PM, Tanmay Patel wrote: > If I insert a NULL value explicitly into a column declared to be NOT NULL > DEFAULT 0 in postgreSQL 8.4 the column ends up with the default value. If I > do the same in postgreSQL 9.0 I get an error about how I am inserting a null > value into

Re: [GENERAL] Explicitly inserting NULL values into NOT NULL DEFAULT 0 columns

2011-11-21 Thread Tom Lane
Tanmay Patel writes: > If I insert a NULL value explicitly into a column declared to be NOT NULL > DEFAULT 0 in postgreSQL 8.4 the column ends up with the default value. If I > do the same in postgreSQL 9.0 I get an error about how I am inserting a > null value into a NOT NULL column. I'm sorry,

[GENERAL] Explicitly inserting NULL values into NOT NULL DEFAULT 0 columns

2011-11-21 Thread Tanmay Patel
If I insert a NULL value explicitly into a column declared to be NOT NULL DEFAULT 0 in postgreSQL 8.4 the column ends up with the default value. If I do the same in postgreSQL 9.0 I get an error about how I am inserting a null value into a NOT NULL column. i.e.: insert into table1 (column1, column