Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMa7b-0007eI-Uq for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Nov 2018 14:56:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gMa7Y-0004DQ-KJ for pgsql-bugs@arkaria.postgresql.org; Tue, 13 Nov 2018 14:56:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMa7Y-0004DD-AD for pgsql-bugs@lists.postgresql.org; Tue, 13 Nov 2018 14:56:52 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gMa7S-000726-8T for pgsql-bugs@lists.postgresql.org; Tue, 13 Nov 2018 14:56:51 +0000 Received: by mail-qk1-x743.google.com with SMTP id 189so19797189qkj.8 for ; Tue, 13 Nov 2018 06:56:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=10kZCSigo3g3PZm7gAwMhzesI93b6rx1Tq6tKEtWth4=; b=tWFRszIs69FAqXkCgN6F9OECKJDfDVP5ilKeLBIdG7VpRxjgNlWJ/X7+HsqNnm/wuL 2F2J/ea7rhHAXoedLR59Uet0iKzTva4WDM2TuKC6eFl3jbByndof87fhbB63a85xY7a/ KfGX5UDZhFoku0ZDsYuxSEp1mbDpKVe+62d0Zs3/G6T7146hdUPPCMnVI6ENLWV9c0oV eqFbWUMgS5BLPODa0zytWW0jOXMYWBiMbfbt9t8XOZ9PC0Ri/W3K1er+hya5dyldJOVF mF0H+gezYd8DLe80d4jyRbh6o0o2euMXmi54gi7Y0z/yOqFOxY1eXhV8oRz37uj+AzKL PUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=10kZCSigo3g3PZm7gAwMhzesI93b6rx1Tq6tKEtWth4=; b=R+7hUcsC7Kuf5OigMfUS8I4ju8uV/zsFzA9M6PBg5YGhzDyfYtGZLI0w/+tX5zOvpG 3FbinYbqBA5izM4UKUre5wXLeVAeQkf1ju5gLCL+ACC/bGL7DDxki2quZch9H9b7XN3H pkWJnMaU20zxeFh+qPSLVVUdiiqelTsPNYgGLWlM8Apk+EJ/0vfC+DRh+xsolcHiwsmM 6tJVonXQ85UIllz11yTaMPztDeG2EseTApGIU1KlbDcymVvrmunZjiVnutV7oZwTSylx jr7dvbDDwXU8Dch6048QlTtK+4wL+7/8Tn4HJ76j5GLaQDcNeJrGYuDBi+stYAtgQPKx unNA== X-Gm-Message-State: AGRZ1gLNDwsc8Ue6rZGAF/0ObthgKhY/yH/fSQScbuwKXTM6WH0aGxpx Leib2FhcqSSHttpZqPJjjV1CBw== X-Google-Smtp-Source: AJdET5ecGNvYZ4wHs8ulMh/OcEAJGLFGuDrw4JUEmc1u6chu6YpI/QT6v3SuaDj5pfMW2aoRv3rHRw== X-Received: by 2002:a37:4d03:: with SMTP id a3mr5167835qkb.181.1542121004459; Tue, 13 Nov 2018 06:56:44 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id r47sm13993834qtc.77.2018.11.13.06.56.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Nov 2018 06:56:44 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id AF3E655D; Tue, 13 Nov 2018 11:56:37 -0300 (-03) Date: Tue, 13 Nov 2018 11:56:37 -0300 From: Alvaro Herrera To: ivan.shib@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15500: Cannot set NULL to a field with ENUM type Message-ID: <20181113145637.nyxrtmb5pwcct5pa@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <15500-2ebc24774d08db26@postgresql.org> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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