Re: Connection gets into state where all queries fail
От | Marco Colombo |
---|---|
Тема | Re: Connection gets into state where all queries fail |
Дата | |
Msg-id | 40D96430.3030303@esi.it обсуждение исходный текст |
Ответ на | Re: Connection gets into state where all queries fail (Martijn van Oosterhout <kleptog@svana.org>) |
Ответы |
Re: Connection gets into state where all queries fail
Re: Connection gets into state where all queries fail |
Список | 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 по дате отправления: