[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1079070 - /subversion/trunk/subversion/libsvn_subr/sqlite.c

From: Hyrum K Wright <hyrum_at_hyrumwright.org>
Date: Tue, 8 Mar 2011 14:56:46 -0600

On Tue, Mar 8, 2011 at 12:43 PM, Greg Stein <gstein_at_gmail.com> wrote:
> On Mon, Mar 7, 2011 at 20:33,  <hwright_at_apache.org> wrote:
>> Author: hwright
>> Date: Tue Mar  8 01:33:03 2011
>> New Revision: 1079070
>>
>> URL: http://svn.apache.org/viewvc?rev=1079070&view=rev
>> Log:
>> If we encounter an error while in an SQLite savepoint, back out the work
>> before returning.  This mirrors the behavior as seen in an SQLite transaction.
>
> And it copies the code. How about factoring out "reset all statements" ?

It's really a small snippet, and I usually defer factoring stuff out
until it is thrice repeated, but I'll make an exception here for you.
:) r1079538.

-Hyrum
Received on 2011-03-08 21:57:20 CET

This is an archived mail posted to the Subversion Dev mailing list.