fix(jdbc): support non-transactional grid edits
This commit is contained in:
1 parent
163a588af8
commit
b150a8e99a
5 files changed
+36
-1
No files matched your search
@@ -65,6 +65,14 @@ test("describes table editing capabilities for special database engines", () =>
|
||||
transaction: false,
|
||||
});
|
||||
|
||||
assert.deepEqual(getDatabaseCapability("jdbc").tableData, {
|
||||
insert: false,
|
||||
updateRequiresPrimaryKey: true,
|
||||
deleteRequiresPrimaryKey: true,
|
||||
requiresTransactionalTableForExistingRows: false,
|
||||
transaction: false,
|
||||
});
|
||||
|
||||
assert.equal(getDatabaseCapability("oracle").syntheticKey, "oracle-rowid");
|
||||
assert.equal(getDatabaseCapability("neo4j").syntheticKey, "neo4j-element-id");
|
||||
});
|
||||
|
||||
@@ -58,6 +58,7 @@ test("allows Hive table data editing even without declared primary keys", () =>
|
||||
test("does not use transactional grid saves for Hive", () => {
|
||||
assert.equal(supportsDataGridTransaction("hive"), false);
|
||||
assert.equal(supportsDataGridTransaction("trino"), false);
|
||||
assert.equal(supportsDataGridTransaction("jdbc"), false);
|
||||
assert.equal(supportsDataGridTransaction("postgres"), true);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user