mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -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);
|
||||
await pool.connect();
|
||||
|
||||
const returnItems: INodeExecutionData[] = [];
|
||||
let responseData: IDataObject | IDataObject[] = [];
|
||||
|
||||
const items = this.getInputData();
|
||||
|
@ -327,12 +326,11 @@ export class MicrosoftSql implements INodeType {
|
|||
|
||||
const itemData = generatePairedItemData(items.length);
|
||||
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
const returnItems = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData },
|
||||
);
|
||||
|
||||
returnItems.push(...executionData);
|
||||
return [returnItems];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue