From ad560860c0f839aded4141390a11169a9f0148b0 Mon Sep 17 00:00:00 2001 From: Azpect3120 <104033825+Azpect3120@users.noreply.github.com> Date: Mon, 19 Aug 2024 14:51:41 -0700 Subject: [PATCH] FIX: Bug with toggling the auto-query and errors. Errors would get OOB swapped into the VOID!!! Now they will get swapped in the right way. --- internal/database/query.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/database/query.go b/internal/database/query.go index 8f7b51a..07c9606 100644 --- a/internal/database/query.go +++ b/internal/database/query.go @@ -22,6 +22,7 @@ func QueryCurrent(c *gin.Context) { for _, query := range queries { cols, data, err := queryConnection(query, conn) if err != nil { + fmt.Println(err) c.String(200, templates.ErrorQueryResults(err)) return } @@ -29,6 +30,8 @@ func QueryCurrent(c *gin.Context) { results = append(results, templates.QueryResult(cols, data)) } + fmt.Printf("%v\n", results) + c.String(200, templates.ConcatResults(results)) }