From 763d4514fafe489c169cd0513bf3b2c4cf7f7f12 Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Fri, 29 Sep 2023 13:27:31 +0300 Subject: [PATCH] fix(Postgres Node): Node requires comma-separated string even when using a single parameter through an expression (#7300) Github issue / Community forum post (link here to close automatically): --- .../Postgres/v2/actions/database/executeQuery.operation.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Postgres/v2/actions/database/executeQuery.operation.ts b/packages/nodes-base/nodes/Postgres/v2/actions/database/executeQuery.operation.ts index 4bff179705..de78fd571d 100644 --- a/packages/nodes-base/nodes/Postgres/v2/actions/database/executeQuery.operation.ts +++ b/packages/nodes-base/nodes/Postgres/v2/actions/database/executeQuery.operation.ts @@ -63,7 +63,11 @@ export async function execute( let values: Array = []; - const queryReplacement = this.getNodeParameter('options.queryReplacement', i, ''); + let queryReplacement = this.getNodeParameter('options.queryReplacement', i, ''); + + if (typeof queryReplacement === 'number') { + queryReplacement = String(queryReplacement); + } if (typeof queryReplacement === 'string') { const node = this.getNode();