Automatically call PrepareBigints for all queries

This commit is contained in:
Dan Sosedoff 2016-01-07 11:33:08 -06:00
parent fbb8ffbfc6
commit 3acc6febae
2 changed files with 2 additions and 2 deletions

View File

@ -207,8 +207,6 @@ func HandleQuery(query string, c *gin.Context) {
c.Writer.Header().Set("Content-disposition", "attachment;filename="+filename) c.Writer.Header().Set("Content-disposition", "attachment;filename="+filename)
} }
result.PrepareBigints()
switch format { switch format {
case "csv": case "csv":
c.Data(200, "text/csv", result.CSV()) c.Data(200, "text/csv", result.CSV())

View File

@ -193,6 +193,8 @@ func (client *Client) query(query string, args ...interface{}) (*Result, error)
} }
} }
result.PrepareBigints()
return &result, nil return &result, nil
} }