fix(query): default query tabs to auto-commit
This commit is contained in:
4 files changed
+12
-15
No files matched your search
@@ -427,7 +427,7 @@ describe("queryStore hidden primary key editing", () => {
|
||||
const { useQueryStore } = await import("@/stores/queryStore");
|
||||
const store = useQueryStore();
|
||||
const tabId = store.createTab("oracle-1", "ORCL", "Query");
|
||||
// Exercise auto-commit execute-multi path (Oracle tabs default to manual TX).
|
||||
// Exercise the explicit auto-commit execute-multi path.
|
||||
store.setAutoCommit(tabId, true);
|
||||
|
||||
await store.executeTabSql(tabId, "SELECT t.* FROM SH_SMCVDMS_OVERSEAS_DRSSITB.TT_PLATFORM_CARS t WHERE t.PLATFORM = '轻卡'");
|
||||
@@ -673,7 +673,7 @@ describe("queryStore hidden primary key editing", () => {
|
||||
const { useQueryStore } = await import("@/stores/queryStore");
|
||||
const store = useQueryStore();
|
||||
const tabId = store.createTab("oracle-1", "ORCL", "Query");
|
||||
// Exercise auto-commit execute-multi path (Oracle tabs default to manual TX).
|
||||
// Exercise the explicit auto-commit execute-multi path.
|
||||
store.setAutoCommit(tabId, true);
|
||||
|
||||
await store.executeTabSql(tabId, "SELECT * FROM aa");
|
||||
@@ -750,7 +750,7 @@ describe("queryStore hidden primary key editing", () => {
|
||||
const { useQueryStore } = await import("@/stores/queryStore");
|
||||
const store = useQueryStore();
|
||||
const tabId = store.createTab("oracle-1", "ORCL", "Query");
|
||||
// Exercise auto-commit execute-multi path (Oracle tabs default to manual TX).
|
||||
// Exercise the explicit auto-commit execute-multi path.
|
||||
store.setAutoCommit(tabId, true);
|
||||
|
||||
const execution = store.executeTabSql(tabId, "SELECT t.* FROM APP.WIDE_TABLE t");
|
||||
@@ -901,7 +901,7 @@ describe("queryStore hidden primary key editing", () => {
|
||||
const { useQueryStore } = await import("@/stores/queryStore");
|
||||
const store = useQueryStore();
|
||||
const tabId = store.createTab("oracle-1", "ORCL", "Query");
|
||||
// Exercise auto-commit execute-multi path (Oracle tabs default to manual TX).
|
||||
// Exercise the explicit auto-commit execute-multi path.
|
||||
store.setAutoCommit(tabId, true);
|
||||
|
||||
await store.executeTabSql(tabId, sql);
|
||||
@@ -950,7 +950,7 @@ describe("queryStore hidden primary key editing", () => {
|
||||
const { useQueryStore } = await import("@/stores/queryStore");
|
||||
const store = useQueryStore();
|
||||
const tabId = store.createTab("oracle-1", "ORCL", "Query");
|
||||
// Exercise auto-commit execute-multi path (Oracle tabs default to manual TX).
|
||||
// Exercise the explicit auto-commit execute-multi path.
|
||||
store.setAutoCommit(tabId, true);
|
||||
const tab = store.tabs.find((item) => item.id === tabId)!;
|
||||
|
||||
@@ -1251,7 +1251,7 @@ describe("queryStore hidden primary key editing", () => {
|
||||
const { useQueryStore } = await import("@/stores/queryStore");
|
||||
const store = useQueryStore();
|
||||
const tabId = store.createTab("oracle-1", "XEPDB1", "Query");
|
||||
// Exercise auto-commit execute-multi path (Oracle tabs default to manual TX).
|
||||
// Exercise the explicit auto-commit execute-multi path.
|
||||
store.setAutoCommit(tabId, true);
|
||||
|
||||
await store.executeTabSql(tabId, "SELECT NAME FROM DBX_HIDDEN_PK_EDIT_TEST");
|
||||
|
||||
@@ -534,7 +534,7 @@ describe("queryStore multi-statement errors", () => {
|
||||
const store = useQueryStore();
|
||||
const tabA = store.createTab("oracle-1", "ORCL", "Tab A");
|
||||
const tabB = store.createTab("oracle-1", "ORCL", "Tab B");
|
||||
// Exercise auto-commit execute-multi path (Oracle tabs default to manual TX).
|
||||
// Exercise the explicit auto-commit execute-multi path.
|
||||
store.setAutoCommit(tabA, true);
|
||||
store.setAutoCommit(tabB, true);
|
||||
|
||||
|
||||
Reference in new issue
Block a user