This commit is contained in:
Jay 2018-04-25 15:47:55 +08:00
parent 4749bdbad3
commit b75453cee9

View File

@ -74,6 +74,7 @@ func ResultToMap(r *sql.Rows) ([]map[string]interface{}, error) {
}
for i, v := range vals {
tmp[cols[i]] = v
vals[i] = nil
}
result = append(result, tmp)
}