fix(MySQL Node): Fix "Maximum call stack size exceeded" error when handling a large number of rows (#10965)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-09-25 13:15:44 +02:00
committed by GitHub
parent afbe884dad
commit 62159bd71c
2 changed files with 4 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ export function prepareOutput(
) => NodeExecutionWithMetadata[],
itemData: IPairedItemData | IPairedItemData[],
) {
const returnData: INodeExecutionData[] = [];
let returnData: INodeExecutionData[] = [];
if (options.detailedOutput) {
response.forEach((entry, index) => {
@@ -154,7 +154,7 @@ export function prepareOutput(
itemData,
});
returnData.push(...executionData);
returnData = returnData.concat(executionData);
});
} else {
response
@@ -164,7 +164,7 @@ export function prepareOutput(
itemData: Array.isArray(itemData) ? itemData[index] : itemData,
});
returnData.push(...executionData);
returnData = returnData.concat(executionData);
});
}