Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXukl-0008J2-0g for pgsql-bugs@arkaria.postgresql.org; Thu, 02 May 2013 14:44:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXukk-0002i7-Db for pgsql-bugs@arkaria.postgresql.org; Thu, 02 May 2013 14:44:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXoj1-000183-7R for pgsql-bugs@postgresql.org; Thu, 02 May 2013 08:18:47 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXoiy-00028F-7I for pgsql-bugs@postgresql.org; Thu, 02 May 2013 08:18:46 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXoix-00048j-Jq for pgsql-bugs@postgresql.org; Thu, 02 May 2013 08:18:43 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UXois-0006p0-Bt for pgsql-bugs@postgresql.org; Thu, 02 May 2013 08:18:38 +0000 Date: Thu, 02 May 2013 08:18:38 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #8132: Not Null column should set default value when inserting or setting null To: pgsql-bugs@postgresql.org From: Hajo@Lemcke.com X-Pg-Spam-Score: -4.4 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8132 Logged by: Hajo Lemcke Email address: Hajo@Lemcke.com PostgreSQL version: 9.2.4 Operating system: Win-7 Description:=20=20=20=20=20=20=20=20 I would like to have the default value replace a given null value if the column is specified with not null and default. The SQL specification only requires to set the default value when the column is omitted on insert or update. I think this is a flaw in the specification because it requires developers to create multiple statements for inserts and updates for all combinations of default not null columns. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs