Constraint between foreign key and primary key not working in Dbeaver #35333
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
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? https://docs.sqlalchemy.org/en/13/dialects/sqlite.html#foreign-key-support |
Beta Was this translation helpful? Give feedback.
-
@TB-HunBoka Thanks so much! I finished. :) |
Beta Was this translation helpful? Give feedback.
-
Happy to help. |
Beta Was this translation helpful? Give feedback.
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