1175 Script continues after BeginTransaction/Commit

Beta Testing for Windows Products and plugins

Moderator: Gurus

Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Re: 1175 Script continues after BeginTransaction/Commit

Post by Bex »

Are you using Attach/Detach?
If you post your code, I'll have a look.
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
mistresso
Posts: 67
Joined: Sun Feb 24, 2008 11:15 am
Location: New Haven

Re: 1175 Script continues after BeginTransaction/Commit

Post by mistresso »

Nah, this is simply songdata updates - I am running some performance tests and keep running into database lock issues. I will post in a separate thread when I have more information. I'm using a .Net "wrapper" around the SQLite implementation, so the issues could be coming from a conflict between how THAT code works its connections to the MM database and how the internal MM API does it. SQLite has some... weirdness... to it, particularly in how it handles transactions/locks and connections. And while it's pretty obvious that the MM API's BeginTransaction and the .Net SQLite provider's BeginTransaction are basically calling the same pieces of SQLite (same with Commit, pretty normal stuff for talking to databases), it seems odd to me that we have no rollback functionality... or any way to 'unlock' the database (or check for a lock).
Teknojnky
Posts: 5537
Joined: Tue Sep 06, 2005 11:01 pm
Contact:

Re: 1175 Script continues after BeginTransaction/Commit

Post by Teknojnky »

songdata object does not need or use explicit commit functions in script, they are only used for opensql queries.

however songdata object may use commits 'behind the scenes', but all the script need worry about is using the update functions.
Post Reply