Re: [HACKERS] Multiple semicolon separated statements and autocommit

2001-08-31 Thread Rene Pijlman
On 30 Aug 2001 21:35:42 -0400, you wrote: >"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: >> Are you sure? I thought all that autocommit meant was that a statement that >> is not enclosed within a begin/commit is automatically committed after it is >> run. So, in the this case all three q

Re: [HACKERS] Multiple semicolon separated statements and autocommit

2001-08-31 Thread Peter Eisentraut
Christopher Kings-Lynne writes: > Are you sure? Yes. > I thought all that autocommit meant was that a statement that > is not enclosed within a begin/commit is automatically committed after it is > run. So, in the this case all three queries will be independent, unless the > first statements i

Re: [HACKERS] Multiple semicolon separated statements and autocommit

2001-08-30 Thread Doug McNaught
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > Are you sure? I thought all that autocommit meant was that a statement that > is not enclosed within a begin/commit is automatically committed after it is > run. So, in the this case all three queries will be independent, unless the > firs

Re: [HACKERS] Multiple semicolon separated statements and autocommit

2001-08-30 Thread Christopher Kings-Lynne
a 'commit;'... Chris > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Eisentraut > Sent: Friday, 31 August 2001 1:57 AM > To: Rene Pijlman > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [HACKERS] Multiple semico

Re: [HACKERS] Multiple semicolon separated statements and autocommit

2001-08-30 Thread Rene Pijlman
On Thu, 30 Aug 2001 19:56:53 +0200 (CEST), you wrote: >Rene Pijlman writes: >> If autocommit is _enabled_ and S1;S2;S3 is send to the database, >> what exactly is the behaviour of the backend? For example, what >> happens if S1 succeeds, S2 fails and S3 would succeed? > >All three commands are exe

Re: [HACKERS] Multiple semicolon separated statements and autocommit

2001-08-30 Thread Peter Eisentraut
Rene Pijlman writes: > If autocommit is _enabled_ and S1;S2;S3 is send to the database, > what exactly is the behaviour of the backend? For example, what > happens if S1 succeeds, S2 fails and S3 would succeed? All three commands are executed in a single transaction. So if S2 fails, S3 would no