The update statement is fine as long as any data sources participate in an XA 
transaction. 

This is bar the simplest solution but may not meet performance constraints 
which is why people use other techniques. 


> On Mar 20, 2019, at 4:13 PM, David Collier-Brown <dav...@spamcop.net> wrote:
> 
> 
> 
> <Auto Generated Inline Image 1>
> 
> 4:12 PM (less than a minute ago)
> 
> 
>> Any Close on file or connection should be called only if only the 
>> call to Open function or method success. 
>> 
>> You have two options here: either you remove the panic when Close is 
>> error (only logging it) or call Close only if Open is success.  I 
>> usually prefer the latter. 
>  
> You and I agree: my code snippit will panic if the open fails,  or if (the 
> open suceeds && the close fails)
> 
> --dave
>> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <Auto Generated Inline Image 1>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to