From 8733176cba1a53c1b1fb651b41827c543aaf0345 Mon Sep 17 00:00:00 2001 From: Hein Date: Fri, 15 May 2026 08:26:59 +0200 Subject: [PATCH] fix(funcspec): enhance quote detection for parameters --- pkg/funcspec/function_api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/funcspec/function_api.go b/pkg/funcspec/function_api.go index b38c45c..b707854 100644 --- a/pkg/funcspec/function_api.go +++ b/pkg/funcspec/function_api.go @@ -991,8 +991,8 @@ func getReplacementForBlankParam(sqlquery, param string) string { charAfter = sqlquery[endIdx] } - // Check if parameter is surrounded by quotes (single quote or dollar sign for PostgreSQL dollar-quoted strings) - if (charBefore == '\'' || charBefore == '$') && (charAfter == '\'' || charAfter == '$') { + // Check if parameter is surrounded by quotes (single quote, dollar sign for PostgreSQL dollar-quoted strings, or double quote for JSON string values) + if (charBefore == '\'' || charBefore == '$' || charBefore == '"') && (charAfter == '\'' || charAfter == '$' || charAfter == '"') { // Parameter is in quotes, return empty string return "" }