Re: Connection gets into state where all queries fail - Mailing list pgsql-general

From Marco Colombo
Subject Re: Connection gets into state where all queries fail
Date
Msg-id 40D96430.3030303@esi.it
Whole thread Raw
In response to Re: Connection gets into state where all queries fail  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Connection gets into state where all queries fail  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: Connection gets into state where all queries fail  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Martijn van Oosterhout wrote:
> On Tue, Jun 22, 2004 at 07:02:28PM -0600, Scott Ribe wrote:
>
>>I suppose psql sends either a commit or rollback after the query generates
>>the error, maybe after every query, so my attempt to use it to check this
>>wasn't a valid test.
>
>
> Nope, psql breaks the statements on ';' and sends each query
> individually, so the issue never comes up.

Now I wonder, it's the psql program or the client library that does
that? Shall I expect the same from within, say, PHP, Perl, Python, C?
Is it a (settable) option of the client code? If not, I expect psql
to have some kind of SQL parser embedded, in order not to be fooled
by such a query: "select * from tab where f1 = 'a;b;c'".

.TM.
--
       ____/  ____/   /
      /      /       /            Marco Colombo
     ___/  ___  /   /              Technical Manager
    /          /   /             ESI s.r.l.
  _____/ _____/  _/               Colombo@ESI.it

pgsql-general by date:

Previous
From: meinverein@bluemail.ch
Date:
Subject: what happened to pghoster.com?
Next
From: "Mark Spruill"
Date:
Subject: Restore a dump with new line characters