This commit is contained in:
Jay 2018-04-25 15:47:55 +08:00
parent 4749bdbad3
commit b75453cee9
1 changed files with 1 additions and 0 deletions

View File

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