CB-1533 Document-based rows delete fix

This commit is contained in:
Serge Rider
2021-12-23 17:52:32 +03:00
parent d902e8ef4e
commit 4e063eb923
@@ -487,7 +487,7 @@ public class WebSQLProcessor {
}
Map<DBDAttributeBinding, Object> delKeyAttributes = new LinkedHashMap<>();
boolean isDocumentKey = keyAttributes.length == 1 && keyAttributes[0].getDataKind() == DBPDataKind.DOCUMENT && dataContainer instanceof DBSDocumentLocator;
boolean isDocumentKey = keyAttributes.length == 1 && keyAttributes[0].getDataKind() == DBPDataKind.DOCUMENT;
for (int i = 0; i < allAttributes.length; i++) {
if (isDocumentKey || ArrayUtils.contains(keyAttributes, allAttributes[i])) {