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 1gi6Aj-0004FG-58 for pgsql-general@arkaria.postgresql.org; Fri, 11 Jan 2019 23:25:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gi6Ah-0007Ds-GJ for pgsql-general@arkaria.postgresql.org; Fri, 11 Jan 2019 23:25:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gi6Ah-0007Dk-3K for pgsql-general@lists.postgresql.org; Fri, 11 Jan 2019 23:25:03 +0000 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gi6Ae-0003ak-Id for pgsql-general@lists.postgresql.org; Fri, 11 Jan 2019 23:25:01 +0000 Received: by mail-pg1-x52b.google.com with SMTP id y4so6924388pgc.12 for ; Fri, 11 Jan 2019 15:25:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=LXm8jzu0l5GWS15adRdny+Guks+ZyymX89f2zM6GoUQ=; b=AZoIr4+jOMv5ee5bV2vUra6Nayku5cnRIrGyBHHcnXlJgPePqix6//bRI0AE6nCsiA CMTpTjUR6zAWcSvEzu9QK0x7sODt5cq76dqsyMKHSKsV4EHvtNXz5FwUox5QZ9jnjo7w 43mkcUqRr4ndd95Ma6e4M8/9nS8YB7ZkMaDKDfl/XvQKIE7lK6ibVrGUwmOIeAeKsiPP gpvbpSIAEduqDOkW2oDLTwzXrjKu/VX1y2xDlsBgFKiGtfShse8mBvLtMySi3jRN1sVD yqiv+aZH4zeRZIlq0xWrIqttw4v4+oUptzvm6h6ZJhEDs7xX7AE92AQ3pwYlil2JESV5 6g/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=LXm8jzu0l5GWS15adRdny+Guks+ZyymX89f2zM6GoUQ=; b=O8c8myP+rDA6Qhwi8XWqy2ybwe1yNxXRMzuDuakU2bXTER3zWbGthnj6FylxZ9i7PT qKBeZpfhU40UDw+OKcqH/X0AGILAwZLKb/b+OgiCde1ppEF4PWGxEE6XgdWwP1RsxLni HMROt0/NvTdmZB1RGRKKZk4WgzUEyDaOPJb2zLh90pdYSHJV4OAo/RNnc/lLKzRvyUj6 TaW2Bnk7dNZ+PCFkyky0FTDcQ+YxsH8D+el6ruMaXDh39QVLxlCWFjo0PY3ULNg6/poq QHfVDOuvMeZ77LjCzrncMu6yvkLsLYVRQvxN166hoTEqp/kxSChWJDEb2C9gi9R96GK2 1CQw== X-Gm-Message-State: AJcUukfD9DVCAYTUMhWxX/J56Mavr+219CBD+G8Jlj5H7PDhrbPZlFc+ EIDmcLljWInZVPdPOeWxXMWD41QH X-Google-Smtp-Source: ALg8bN7sL8rZgluoXGyqaFYQcO8J/CwTeFvV6XANZnTYc087sFWZd1TWXF6ed6Sla96D8dFKKWo5TA== X-Received: by 2002:a62:5003:: with SMTP id e3mr16971830pfb.23.1547249099009; Fri, 11 Jan 2019 15:24:59 -0800 (PST) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id b68sm118759694pfg.160.2019.01.11.15.24.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Jan 2019 15:24:58 -0800 (PST) Subject: Re: insert into: NULL in date column To: pgsql-general@lists.postgresql.org References: <410b055a-24a7-5e15-f4e6-462e64794530@gmail.com> From: Rob Sargent Message-ID: Date: Fri, 11 Jan 2019 16:24:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/11/19 4:21 PM, Rich Shepard wrote: > On Fri, 11 Jan 2019, Rob Sargent wrote: > >>> psql:activities.sql:2: ERROR:  invalid input syntax for type date: "" >>> LINE 2: ...reaction they''ve experienced environmental issues.','',''); >                                                                  ^ >> Miss-matched single quotes in activities.sql? > > Rob, > >   I don't see the mis-match. The preceeding text column escapes the > internal > single quotes by doubling them while the entire string is single quoted. > > Regards, > > Rich > We don't have more context in "activities.sql" but if your OP was verbatim, it's keeling over on the comma ending the long text string. Something syntactically askew I think.