Re: Multi-row insert: error at terminal row. - Mailing list pgsql-general

From Paul Förster
Subject Re: Multi-row insert: error at terminal row.
Date
Msg-id 23EFF7D8-D708-4F5F-826C-A7FB0F7C265A@gmail.com
Whole thread Raw
In response to Re: Multi-row insert: error at terminal row.  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Multi-row insert: error at terminal row.  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Multi-row insert: error at terminal row.  (Rich Shepard <rshepard@appl-ecosys.com>)
List pgsql-general
Hi Rich,

> On 29. Oct, 2020, at 17:08, Rich Shepard <rshepard@appl-ecosys.com> wrote:
>
> On Thu, 29 Oct 2020, Paul Förster wrote:
>
>>> (2698,'Port of Portland','http://www.portofportland.com',null,'Port','Opportunity',null);
>> the last line has a closing parenthesis missing.
>
> Paul,
>
> I see a closing parenthesis immediately in front of the semi-colon and emacs
> shows it matches the opening parenthesis.

I don't know Emacs, I'm a vi guy. ;-)

But I guess that Emacs shows the matching closing bracket at the beginning of the line, which matches that single
tuple.But you also need a closing bracket for the set of tuples like this: 

insert ...
(
    (v1, v2, v3),
    (v4, v5, v6),
    (v7, v8, v9)    <= this is the bracket pair that Emacs shows as matching.
);     <= this is the missing bracket.

Cheers,
Paul


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Multi-row insert: error at terminal row.
Next
From: "David G. Johnston"
Date:
Subject: Re: Multi-row insert: error at terminal row.