pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: shiwangini.shishulkar@webgility.com
Subject: BUG #15936: user defined data type isn't picking default value
Date: Thu, 01 Aug 2019 07:39:44 +0000
Message-ID: <15936-74bb7b93ba2499ac@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15936
Logged by:          Shiwangini Shishulkar
Email address:      shiwangini.shishulkar@webgility.com
PostgreSQL version: 11.4
Operating system:   CentOS Linux release 7.6.1810 (Core)
Description:        

We have created a user defined data type type_currency. Below is the
definition:

-- DROP DOMAIN type_currency;

CREATE DOMAIN type_currency AS numeric
	DEFAULT 0;


However, when we are not any specific value to this column ,it should by
default pick '0'. However, it isn't working in the way/not taking 0 as
default value.



view thread (2+ messages)  latest in thread

Message-ID: <15936-74bb7b93ba2499ac@postgresql.org>
Permalink:  ../15936-74bb7b93ba2499ac@postgresql.org/
Also on:    postgresql.org/message-id/15936-74bb7b93ba2499ac@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: noreply@postgresql.org, shiwangini.shishulkar@webgility.com
  Subject: Re: BUG #15936: user defined data type isn't picking default value
  In-Reply-To: <15936-74bb7b93ba2499ac@postgresql.org>
  References: <15936-74bb7b93ba2499ac@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