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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -327,7 +327,7 @@ export class MySqlV1 implements INodeType {
{ itemData: { item: index } },
);
collection.push(...executionData);
collection = collection.concat(executionData);
return collection;
},

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);
});
}