Quantcast
Channel: GSAK Forum
Viewing all articles
Browse latest Browse all 75110

Problems attaching a DB in an FSG Plugin by sbeelis - 2013-09-12

$
0
0
QUOTE (clyde @ September 12, 2013 12:34 am)
QUOTE
Error=> SQLite Error 1 - SQL logic error or missing database

Yea, this is one of the more obscure error messages that sqlite throws at times.

I am not sure if it is the only way, but the most common cause of this error message is trying to attach a database in the middle of a transaction (which Sqlite does not allow).

[snip details]

So I am not sure why but on the surface it would appear that when your plugin is run using the test button it is in the middle of a transaction, but when run natively from withing Findstatsgen it is not.

Clyde, thanks for this explanation. I haven't looked at the FSG code to verify this (@lignumaqua: and there is no need for you to go and check, I'm sure you have better things to do :-) but it is certainly a plausible explanation.

As I've found a way to catch this case, I'm quite happy to live with this lilmitation.

@clyde: I know that normally when you don't say anything, requests are "on the list" but as this is not the feature request forum and I was asking only at the end of my initial post, I am wondering, if you saw my comment about the "cleanup" of attached databases in error cases or if you'd prefer for me to explicitely ask for it in the feature request subforum?

Viewing all articles
Browse latest Browse all 75110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>