Automatically call PrepareBigints for all queries
This commit is contained in:
parent
fbb8ffbfc6
commit
3acc6febae
@ -207,8 +207,6 @@ func HandleQuery(query string, c *gin.Context) {
|
||||
c.Writer.Header().Set("Content-disposition", "attachment;filename="+filename)
|
||||
}
|
||||
|
||||
result.PrepareBigints()
|
||||
|
||||
switch format {
|
||||
case "csv":
|
||||
c.Data(200, "text/csv", result.CSV())
|
||||
|
@ -193,6 +193,8 @@ func (client *Client) query(query string, args ...interface{}) (*Result, error)
|
||||
}
|
||||
}
|
||||
|
||||
result.PrepareBigints()
|
||||
|
||||
return &result, nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user