From: Marko Tiikkaja <marko@joh.to>
To: plademan@comcast.net
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #9088: default are not working
Date: Mon, 03 Feb 2014 23:31:17 +0100
Message-ID: <52F018B5.3070106@joh.to> (raw)
In-Reply-To: <20140203222323.13575.44279@wrigleys.postgresql.org>
References: <20140203222323.13575.44279@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2/3/14, 11:23 PM, plademan@comcast.net wrote:
> It appears that default values are no longer working in 9.3.1.
>
> insert into default_test
> ( userId, date1, date2, date3 )
> values
> ( null, null, null, null );
>
> select * from default_test;
This wouldn't have worked in previous versions either. You want:
INSERT INTO default_test (userid, date1, date2, date) VALUES
(DEFAULT, DEFAULT, DEFAULT, DEFAULT)
or perhaps
INSERT INTO default_test DEFAULT VALUES;
Regards,
Marko Tiikkaja
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: marko@joh.to, plademan@comcast.net
Subject: Re: BUG #9088: default are not working
In-Reply-To: <52F018B5.3070106@joh.to>
References: <20140203222323.13575.44279@wrigleys.postgresql.org> <52F018B5.3070106@joh.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox