pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: insert into: NULL in date column
Date: Fri, 11 Jan 2019 16:24:56 -0700
Message-ID: <cc5fb963-ea67-0068-8158-04a190f16242@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.20.1901111518170.8922@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1901111449480.8922@salmo.appl-ecosys.com>
	<410b055a-24a7-5e15-f4e6-462e64794530@gmail.com>
	<alpine.LNX.2.20.1901111518170.8922@salmo.appl-ecosys.com>


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.




view thread (23+ messages)  latest in thread

Message-ID: <cc5fb963-ea67-0068-8158-04a190f16242@gmail.com>
Permalink:  ../cc5fb963-ea67-0068-8158-04a190f16242@gmail.com/
Also on:    postgresql.org/message-id/cc5fb963-ea67-0068-8158-04a190f16242@gmail.com

 · 

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-general@postgresql.org
  Cc: robjsargent@gmail.com
  Subject: Re: insert into: NULL in date column
  In-Reply-To: <cc5fb963-ea67-0068-8158-04a190f16242@gmail.com>
  References: <alpine.LNX.2.20.1901111449480.8922@salmo.appl-ecosys.com> <410b055a-24a7-5e15-f4e6-462e64794530@gmail.com> <alpine.LNX.2.20.1901111518170.8922@salmo.appl-ecosys.com> <cc5fb963-ea67-0068-8158-04a190f16242@gmail.com>

* 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