After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 467011 - no longer works with sqlite2
no longer works with sqlite2
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
SVN
Other Linux
: Normal minor
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 441078 468513 472238 472805 480540 486878 499414 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-08-15 16:52 UTC by Stephane Delcroix
Modified: 2008-01-25 16:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
workaround (1.58 KB, patch)
2007-08-25 11:32 UTC, Stephane Delcroix
none Details | Review

Description Stephane Delcroix 2007-08-15 16:52:17 UTC
everything's in the title
Comment 1 Stephane Delcroix 2007-08-20 14:07:55 UTC
*** Bug 468513 has been marked as a duplicate of this bug. ***
Comment 2 Stephane Delcroix 2007-08-21 08:46:08 UTC
I spotted the problem in Mono.Data.SqliteClient.
BindParameters2 stops reading argument names while it read an underscore. e.g., it looks for the 'directory' parameters where it should look for 'directory_path'

Various ways to solve this:
- fix it in mono, and wait until the new version is widely distributed
- bundle a modified version of Mono.Data.SqliteClient with f-spot
- update db schemas so we don't have underscores anymore in names
- fails at startup if the db is v2
Comment 3 Stephane Delcroix 2007-08-25 11:32:44 UTC
Created attachment 94309 [details] [review]
workaround

this patch implements a workaround for broken BindParameters2 in Mono.Data.SqliteClient by removing the undercores in parameters names.
Comment 4 Stephane Delcroix 2007-08-31 16:03:04 UTC
*** Bug 472238 has been marked as a duplicate of this bug. ***
Comment 5 Stephane Delcroix 2007-09-02 12:55:08 UTC
*** Bug 472805 has been marked as a duplicate of this bug. ***
Comment 6 Stephane Delcroix 2007-09-26 12:22:25 UTC
*** Bug 480540 has been marked as a duplicate of this bug. ***
Comment 7 Stephane Delcroix 2007-10-16 08:02:48 UTC
*** Bug 486878 has been marked as a duplicate of this bug. ***
Comment 8 Maxxer 2007-11-08 14:16:01 UTC
*** Bug 441078 has been marked as a duplicate of this bug. ***
Comment 9 Maxxer 2007-11-24 20:56:36 UTC
*** Bug 499414 has been marked as a duplicate of this bug. ***
Comment 10 Bryce Nesbitt 2007-12-26 19:39:11 UTC
I get this also.  See a solution at http://f-spot.org/FAQ

A: Many misbehaviors of F-Spot can be headed to database problems. F-Spot uses a Sqlite (http://www.sqlite.org) db, usually placed in ~/.gnome2/f-spot/photos.db. Since latest releases (> 0.3.5) there have been problems with version 2 of the db, so v3 is required.

Unhandled Exception: System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count
Comment 11 Stephane Delcroix 2008-01-25 16:27:24 UTC
since -r3600, f-spot will (try to) autoupgrade to sqlite3.