Skip to content

PRAGMA foreign_keys = ON; failed #980

Closed

Description

@qiulang

Details for the issue

PRAGMA foreign_keys = ON;

Query executed successfully: PRAGMA foreign_keys = ON; (took 0ms)

Run PRAGMA foreign_keys; again and still show 0

I'm opening this issue because:

  • DB4S is crashing
  • DB4S has a bug
  • DB4S needs a feature
  • DB4S has another problem

I'm using DB4S on:

  • Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using DB4S version:

  • 3.9.1
  • 3.9.0
  • Other: ___

I have also:

Activity

  1. justinclift commented on Mar 13, 2017

    @justinclift
    Member

    Interesting. Does it still happen with our recent nightly builds? Download locations are listed on our front page, if that helps. 😄

  2. MKleusberg commented on May 1, 2017

    @MKleusberg
    Member

    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?

  3. MKleusberg commented on May 1, 2017

    @MKleusberg
    Member

    This also seems to be related to #966.

  4. MKleusberg commented on Jun 30, 2017

    @MKleusberg
    Member

    @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? 😄

  5. justinclift commented on Nov 9, 2017

    @justinclift
    Member

    Closing this due to lack of response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions