diff --git a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLProcessor.java b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLProcessor.java index 46d46667bd..a149908f9d 100644 --- a/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLProcessor.java +++ b/server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLProcessor.java @@ -487,8 +487,10 @@ public class WebSQLProcessor { } Map delKeyAttributes = new LinkedHashMap<>(); + boolean isDocumentKey = keyAttributes.length == 1 && keyAttributes[0].getDataKind() == DBPDataKind.DOCUMENT && dataContainer instanceof DBSDocumentLocator; + for (int i = 0; i < allAttributes.length; i++) { - if (ArrayUtils.contains(keyAttributes, allAttributes[i])) { + if (isDocumentKey || ArrayUtils.contains(keyAttributes, allAttributes[i])) { Object realCellValue = convertInputCellValue(session, allAttributes[i], keyData.get(i)); delKeyAttributes.put(allAttributes[i], realCellValue);