Skip to content

Commit

Permalink
fixes to how json value are converted to string
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Calza <[email protected]>
  • Loading branch information
brunocalza committed May 24, 2024
1 parent 2f4a7f2 commit 0a43946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/router/controllers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0a43946

Please sign in to comment.