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
That happens because we have to execute all SQL commands inside a transaction and the foreign key pragma 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 statement and disable transactions for that. But that's always going to be error-prone...
@qiulang Do you need to be able to do this using SQL? Or can you just use the GUI editor in the Edit Pragma tab instead?
@qiulang 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 Mar 13, 2017
Interesting. Does it still happen with our recent nightly builds? Download locations are listed on our front page, if that helps. 😄
MKleusberg commentedon May 1, 2017
That happens because we have to execute all SQL commands inside a transaction and the foreign key pragma 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=xstatement and disable transactions for that. But that's always going to be error-prone...@qiulang Do you need to be able to do this using SQL? Or can you just use the GUI editor in the Edit Pragma tab instead?
MKleusberg commentedon May 1, 2017
This also seems to be related to #966.
Allow setting PRAGMAs from the Execute SQL tab
MKleusberg commentedon Jun 30, 2017
@qiulang 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 Nov 9, 2017
Closing this due to lack of response.