From 0a439467d6821a5e519cf9b29a002989f0ffffe8 Mon Sep 17 00:00:00 2001 From: Bruno Calza Date: Fri, 24 May 2024 15:58:33 -0300 Subject: [PATCH] fixes to how json value are converted to string Signed-off-by: Bruno Calza --- internal/router/controllers/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/router/controllers/controller.go b/internal/router/controllers/controller.go index 2be04983..83677976 100644 --- a/internal/router/controllers/controller.go +++ b/internal/router/controllers/controller.go @@ -298,10 +298,10 @@ func (c *Controller) PostTableQuery(rw http.ResponseWriter, r *http.Request) { params := make([]string, len(body.Params)) for i, p := range body.Params { switch v := p.(type) { - case int: + case float64: params[i] = fmt.Sprint(v) case string: - params[i] = v + params[i] = fmt.Sprintf("\"%s\"", v) case nil: params[i] = "null" case bool: