-
DescriptionDbeaver Community (24.0.4.20240505183) With a table loaded (MS SQL Server DB), individual column entries can be edited and then saved. Can see from the preview of the SQL used to update table that it is using a non-identify column in the where clause to determine which row to affect. I couldn't see anywhere in the settings to alter this, and I couldn't describe the issue in a way that I found any existing issues, so I apologise if this has been asked and answered. DBeaver VersionCommunity Edition 24.0.4 Operating SystemWindows 10 Pro Database and driverDatabase: MS SQL Server Steps to reproduceDDL to replicate:
The problem is that when I change a row for column
Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
This issue affects also DBeaver Version Operating System |
Beta Was this translation helpful? Give feedback.
-
@CallumBDX @michele-tramonti |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi @E1izabeth, thanks for checking this out. You are correct that there is no physical unique key here, and that the "name" column is set as the virtual unique key. Changing the virtual key to the identity column has fixed the issue for me. I must've set that without thinking years ago! |
Beta Was this translation helpful? Give feedback.
-
Thank you for response. I'm closing the issue then. |
Beta Was this translation helpful? Give feedback.
-
Hi E1izabeth, Anyway I think that there is still a bug here: the update sql script generated by DBeaver is wrong, because it include a 'N' character after each '=' sign, if the column type is a string (you can see it also in the first post of CallumBDX). maybe, if the table contains a physical primary key this will not appen, but physical primary key is not mandatory so I think this is not a solution. |
Beta Was this translation helpful? Give feedback.
For now, if I create the table by the provided DDL, it doesn't have a primary key. So, on data edit, I'm asked about the approach
I can reproduce the issue only if manually created virtual key for
name
column. Could you also check, if you have one?