QUOTE (clyde @ September 12, 2013 12:34 am) | ||
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?