mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Microsoft SQL Node): Fix "Maximum call stack size exceeded" error on too many rows (#8334)
This commit is contained in:
committed by
GitHub
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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user