pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #15936: user defined data type isn't picking default value 2+ messages / 2 participants [nested] [flat]
* BUG #15936: user defined data type isn't picking default value @ 2019-08-01 07:39 PG Bug reporting form <noreply@postgresql.org> 0 siblings, 1 reply; 2+ messages in thread From: PG Bug reporting form @ 2019-08-01 07:39 UTC (permalink / raw) To: pgsql-bugs@lists.postgresql.org; +Cc: shiwangini.shishulkar@webgility.com 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. ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #15936: user defined data type isn't picking default value @ 2019-08-01 10:42 Sergei Kornilov <sk@zsrv.org> parent: PG Bug reporting form <noreply@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Sergei Kornilov @ 2019-08-01 10:42 UTC (permalink / raw) To: shiwangini.shishulkar@webgility.com <shiwangini.shishulkar@webgility.com>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org> Hello melkij=> CREATE DOMAIN type_currency AS numeric default 0; CREATE DOMAIN melkij=> create table tt ( i int, t type_currency); CREATE TABLE melkij=> insert into tt (i) values (1); INSERT 0 1 melkij=> table tt; i | t ---+--- 1 | 0 Works for me. Can you provide reproducible testcase? regards, Sergei ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-08-01 10:42 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-08-01 07:39 BUG #15936: user defined data type isn't picking default value PG Bug reporting form <noreply@postgresql.org> 2019-08-01 10:42 ` Sergei Kornilov <sk@zsrv.org>
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