fix bug
This commit is contained in:
parent
4749bdbad3
commit
b75453cee9
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user