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