mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 10:32:17 -08:00
fix(MySQL Node): Fix "Maximum call stack size exceeded" error when handling a large number of rows (#10965)
This commit is contained in:
parent
afbe884dad
commit
62159bd71c
|
@ -327,7 +327,7 @@ export class MySqlV1 implements INodeType {
|
|||
{ itemData: { item: index } },
|
||||
);
|
||||
|
||||
collection.push(...executionData);
|
||||
collection = collection.concat(executionData);
|
||||
|
||||
return collection;
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue