Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: Command exe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 9621 of 11009
Post > Topic >>

Re: Command execution

by azzmosphere@[EMAIL PROTECTED] (Aaron Spiteri) Jul 3, 2008 at 11:37 PM

Thanks for pointers, that has cleared a few things up for me.

On 03/07/2008, at 11:27 PM, Csaba Nagy wrote:

> On Thu, 2008-07-03 at 23:15 +1000, Aaron Spiteri wrote:
>> Inside foo there was a INSERT and UPDATE, and the INSERT failed but
>> the UPDATE succeeded would the UPDATE be rolled back?
>
> Just to add to the other answers, if the INSERT is before the  
> UPDATE in
> the function, the function execution stops when the INSERT fails,  
> and so
> the UPDATE will never be executed in the first place...
>
> Cheers,
> Csaba.
>
>


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 4 Posts in Topic:
Command execution
azzmosphere@[EMAIL PROTEC  2008-07-03 23:15:33 
Re: Command execution
andreas.kretschmer@[EMAIL  2008-07-03 15:22:50 
Re: Command execution
nagy@[EMAIL PROTECTED] (  2008-07-03 15:27:44 
Re: Command execution
azzmosphere@[EMAIL PROTEC  2008-07-03 23:37:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 8:42:35 CST 2008.