You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cant define pragmas on the run-sql tab. E. g. if I type and execute "pragma auto_vacuum = 1;" and choose the tab "edit pragmas" i cant see my changes.
Its also not working when i modify the options directly on the "edit pragmas" tab, also if i hit the "save" button hundrets of times.
But i found a workaround, if i type and execute this:
end transaction;
pragma auto_vacuum = 1;
and after that I clicked the "compact database" option on the menu strip, then changes were accepted.
Interesting. Sounds like our transaction control bits are/were interfering with setting pragmas.
Would you be ok to try out the latest nightly version? We've done a fair amount of work on our transaction control pieces since our 3.9.1 release. There's a decent chance this bug won't be present in the nightlies. 😄
Yes I tried "DB Browser for SQLite-2017-02-22-win64", but the problem is still there. The changes will be accepted only, if I hit the "compact database" option. Cant you recreate my problem by yourself?
This seems to be the same issue as in #980. I've just tried to explain the problem in that issue and will just copy & paste it: 😃
That happens because we have to execute all SQL commands inside a transaction and the foreign key pragma [or any other pragma for that matter] can't be set inside a transaction. The only reasonable workaround for us that I can think of right now is to somehow detect a pragma foreign_keys=x [or other pragmas] statement and disable transactions for that. But that's always going to be error-prone...
@hackingtosh I believe this is fixed in the next nightly build. Can you download that (see our main page for the link) and check if it's working for you as expected? 😄
Activity
justinclift commentedon Feb 26, 2017
Interesting. Sounds like our transaction control bits are/were interfering with setting pragmas.
Would you be ok to try out the latest nightly version? We've done a fair amount of work on our transaction control pieces since our 3.9.1 release. There's a decent chance this bug won't be present in the nightlies. 😄
hackingtosh commentedon Feb 26, 2017
Yes I tried "DB Browser for SQLite-2017-02-22-win64", but the problem is still there. The changes will be accepted only, if I hit the "compact database" option. Cant you recreate my problem by yourself?
justinclift commentedon Feb 26, 2017
It's not something I have time to look at personally today. My focus for today is on other stuff which is well overdue. 😉
Hopefully one of the other team members has time to investigate. 😄
hackingtosh commentedon Feb 26, 2017
Ok thanks, I thought maybe you already noticed this problem ;)
justinclift commentedon Feb 26, 2017
No worries at all. 😄
MKleusberg commentedon May 1, 2017
This seems to be the same issue as in #980. I've just tried to explain the problem in that issue and will just copy & paste it: 😃
That happens because we have to execute all SQL commands inside a transaction and the foreign key pragma [or any other pragma for that matter] can't be set inside a transaction. The only reasonable workaround for us that I can think of right now is to somehow detect a
pragma foreign_keys=x[or other pragmas] statement and disable transactions for that. But that's always going to be error-prone...justinclift commentedon May 1, 2017
Maybe if add a checkbox option to the Execute SQL tab "[ ] Run inside transaction", so people can enable/disable the transaction themselves?
Allow setting PRAGMAs from the Execute SQL tab
MKleusberg commentedon Jun 30, 2017
@hackingtosh I believe this is fixed in the next nightly build. Can you download that (see our main page for the link) and check if it's working for you as expected? 😄
justinclift commentedon Aug 11, 2017
Closing this, as #980 seems to cover it well enough. 😄