pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: plademan@comcast.net
To: pgsql-bugs@postgresql.org
Subject: BUG #9088: default are not working
Date: Mon, 03 Feb 2014 22:23:23 +0000
Message-ID: <20140203222323.13575.44279@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      9088
Logged by:          Patrick Lademan
Email address:      plademan@comcast.net
PostgreSQL version: 9.3.1
Operating system:   OS X 10.9.1 (13B42)
Description:        

It appears that default values are no longer working in 9.3.1.

This is the version that I am running:
"PostgreSQL 9.3.1 on x86_64-apple-darwin, compiled by
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.9.00), 64-bit"

-- Test Case
drop table default_test;

create table default_test 
( 
  userId   varchar(20)   default 'test',
  date1    timestamp     default now(),
  date2    timestamp     default current_timestamp,
  date3    timestamp     default localtimestamp
);

insert into default_test
( userId, date1, date2, date3 )
values
( null, null, null, null );

select * from default_test;



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <20140203222323.13575.44279@wrigleys.postgresql.org>
Permalink:  ../20140203222323.13575.44279@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20140203222323.13575.44279@wrigleys.postgresql.org

 · 

reply

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: plademan@comcast.net
  Subject: Re: BUG #9088: default are not working
  In-Reply-To: <20140203222323.13575.44279@wrigleys.postgresql.org>
  References: <20140203222323.13575.44279@wrigleys.postgresql.org>

* 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