[Mono-dev] [PATCH] Mono.Data.SqliteClient fixes from Beagle
Daniel Drake
dsd at gentoo.org
Tue Nov 29 12:03:57 EST 2005
Hi,
Previously, SqliteClient did not properly check the return values of some of
its calls into the sqlite API.
The sqlite API can return BUSY in some locking-related situations, but this
wasn't being handled appropriately, and strange things would happen.
This patch wraps Sqlite errors into a new exception class, which allows the
user to respond accordingly to BUSY states. For example, Beagle sleeps a bit
and then retries when it sees a SqliteException with BUSY inside it.
This work was done by Jon Trowbridge, but I've been maintaining it and keeping
it up-to-date with the more recent SqliteClient changes applied to the tree.
After a long period of testing in Beagle I feel its time this should be fixed
in the main tree :)
Any comments? Does this look ok for me to commit?
Thanks,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqliteclient-updates.patch
Type: text/x-patch
Size: 15556 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051129/3885b298/attachment.bin
More information about the Mono-devel-list
mailing list