Dbeaver does not detect unique key on a table despite primary key being present
See original GitHub issueSystem information:
- win10 x64
- dbeaver 6.1.1
Connection specification:
- org.sqlite.JDBC 3.28.0
Describe the problem you’re observing:
I am trying to remove a record from sqlite database. I use dbeaver program for all operations. So when the action is performed, following error is shown:
No unique key is defined
Steps to reproduce, if exist:
Query for table creation was this:
CREATE TABLE betGroups (
id INTEGER PRIMARY KEY AUTOINCREMENT,
betgroupstatus INTEGER NOT NULL,
dateInserted DATETIME DEFAULT CURRENT_TIMESTAMP)
Insert some dummy data. Then I select a record in “data” view. Press “delete” on a keyboard. and then click “save” button below. First the warning is shown that no physical unique key is found, so he program suggests to use ALL ROW as a key. If I press cancel, then the above mentioned error is shown.
However, If we check the unique keys tab - we will see that a unique key is present as well as the primary key.
So as far as Sqlite database is concerned - unique key exists, bu the program fails to detect it for some reason during manual delete operation. Please investigate.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Now I’ve reproduced this. Thanks for detailed bug report
Verified