Re: insert into: NULL in date column - Mailing list pgsql-general

From Rob Sargent
Subject Re: insert into: NULL in date column
Date
Msg-id cc5fb963-ea67-0068-8158-04a190f16242@gmail.com
Whole thread Raw
In response to Re: insert into: NULL in date column  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: insert into: NULL in date column
Re: insert into: NULL in date column
Re: insert into: NULL in date column
List pgsql-general
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.


pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Re: insert into: NULL in date column
Next
From: Ken Tanzer
Date:
Subject: Re: insert into: NULL in date column