mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(Microsoft SQL Node): Fix "Maximum call stack size exceeded" error on too many rows (#8334)
This commit is contained in:
parent
c921665f9a
commit
bb2be8d705
|
@ -248,7 +248,6 @@ export class MicrosoftSql implements INodeType {
|
||||||
const pool = configurePool(credentials);
|
const pool = configurePool(credentials);
|
||||||
await pool.connect();
|
await pool.connect();
|
||||||
|
|
||||||
const returnItems: INodeExecutionData[] = [];
|
|
||||||
let responseData: IDataObject | IDataObject[] = [];
|
let responseData: IDataObject | IDataObject[] = [];
|
||||||
|
|
||||||
const items = this.getInputData();
|
const items = this.getInputData();
|
||||||
|
@ -327,12 +326,11 @@ export class MicrosoftSql implements INodeType {
|
||||||
|
|
||||||
const itemData = generatePairedItemData(items.length);
|
const itemData = generatePairedItemData(items.length);
|
||||||
|
|
||||||
const executionData = this.helpers.constructExecutionMetaData(
|
const returnItems = this.helpers.constructExecutionMetaData(
|
||||||
this.helpers.returnJsonArray(responseData),
|
this.helpers.returnJsonArray(responseData),
|
||||||
{ itemData },
|
{ itemData },
|
||||||
);
|
);
|
||||||
|
|
||||||
returnItems.push(...executionData);
|
|
||||||
return [returnItems];
|
return [returnItems];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue