From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: ivan.shib@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15500: Cannot set NULL to a field with ENUM type
Date: Tue, 13 Nov 2018 11:56:37 -0300
Message-ID: <20181113145637.nyxrtmb5pwcct5pa@alvherre.pgsql> (raw)
In-Reply-To: <15500-2ebc24774d08db26@postgresql.org>
On 2018-Nov-13, PG Bug reporting form wrote:
> 3. Insert a new record:
> > INSERT INTO "public"."schedule" ("id", "week_day", "minute", "hour")
> VALUES (DEFAULT, 'NULL', DEFAULT, DEFAULT);
This is not a NULL value -- it's a string that says NULL. Try with
INSERT INTO public.schedule (id, week_day, minute, hour)
VALUES (DEFAULT, NULL, DEFAULT, DEFAULT);
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, ivan.shib@gmail.com
Subject: Re: BUG #15500: Cannot set NULL to a field with ENUM type
In-Reply-To: <20181113145637.nyxrtmb5pwcct5pa@alvherre.pgsql>
References: <15500-2ebc24774d08db26@postgresql.org> <20181113145637.nyxrtmb5pwcct5pa@alvherre.pgsql>
* 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