Skip to content

Constraint between foreign key and primary key not working in Dbeaver #35333

Answered by TB-HunBoka
Maianh2510 asked this question in Q&A
Discussion options

You must be logged in to vote

This is not a Dbeaver issue more like a question, you can ask questions like this in the discussion if you would like to: https://github.com/orgs/dbeaver/discussions

Did you turn on the PRAGMA foreign_keys setting on your sqlite db?
As far as I know it is not enabled by default and you need to enable it.
Assuming the library is compiled with foreign key constraints enabled, it must still be enabled by the application at runtime, using the PRAGMA foreign_keys command.

https://docs.sqlalchemy.org/en/13/dialects/sqlite.html#foreign-key-support

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by E1izabeth
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #35290 on August 23, 2024 14:35.