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.
This commit is contained in:
parent
c8b2fadbb0
commit
ad560860c0
@ -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))
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user