On Wed, Sep 14, 2011 at 6:57 PM, Ilian Iliev <il...@i-n-i.org> wrote:
> Hi Tom,
> I checked the link you send and probably you are right but
> can you explain why this is a bad solution?
> Yes using autocommit() or disabling transactions seems more right
> are there any downsides of the update() that you are seeing?
> Image a case when you want to update the result set without breaking the
> transaction(is this possible)?
> I am not trolling just asking?
> Regards,
> Ilian Iliev

It's bad for future maintenance. Other developers may not know that
trick, and be confused why you are doing a 'pointless' update, without
grokking the unannounced side effect. It is always better to be
explicit rather than implicit.

Any UPDATE or INSERT will always commit the current transaction.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to