1

Cleaning up query

This commit is contained in:
Alex Yatskov 2015-03-24 21:01:46 +09:00
parent bfcee865c5
commit 499d6b0024

View File

@ -118,7 +118,7 @@ func getCategories(rw http.ResponseWriter, req *http.Request) {
Id int `json:"id"` Id int `json:"id"`
} }
rows, err := db.Query("SELECT * FROM categories") rows, err := db.Query("SELECT description, id FROM categories")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }