fix(dameng): normalize copied table target names
This commit is contained in:
6 files changed
+73
-9
No files matched your search
@@ -3075,6 +3075,7 @@ async function confirmPasteTable() {
|
||||
schema: entry.schema,
|
||||
sourceName: entry.sourceName,
|
||||
targetName,
|
||||
normalizeNewTargetName: mode === "structure-and-data",
|
||||
...dataCopyColumnOptions,
|
||||
});
|
||||
const dataExecuted = await executeTreeNodeSqlWithProductionGuard(entry, dataSql, { database: entry.database, schema: entry.schema });
|
||||
|
||||
@@ -16,6 +16,7 @@ describe("cross-database table paste", () => {
|
||||
it("retains the local duplicate-table paste path", () => {
|
||||
expect(runtimeSource).toContain("if (canTransferTreeClipboardToCurrentNode()) return openTransferFromTreeClipboard();");
|
||||
expect(runtimeSource).toContain("pasteTableMode.value = defaultPasteTableMode(currentDatabaseType());");
|
||||
expect(runtimeSource).toContain('normalizeNewTargetName: mode === "structure-and-data"');
|
||||
});
|
||||
|
||||
it("carries table comments through the local sidebar paste path", () => {
|
||||
|
||||
Reference in new issue
Block a user