From fbf8230a3d66fe5f371d1b92355f5dd332796c0c Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 16 Jan 2023 12:24:32 +0000 Subject: [PATCH] allow all user bindings in SQL queries (#9354) --- packages/server/src/threads/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/threads/query.ts b/packages/server/src/threads/query.ts index 3d6428dd56..87b2212a23 100644 --- a/packages/server/src/threads/query.ts +++ b/packages/server/src/threads/query.ts @@ -89,7 +89,7 @@ class QueryRunner { let query // handle SQL injections by interpolating the variables if (isSQL(datasourceClone)) { - query = interpolateSQL(fieldsClone, enrichedParameters, integration) + query = interpolateSQL(fieldsClone, enrichedContext, integration) } else { query = enrichQueryFields(fieldsClone, enrichedContext) }