Working
This commit is contained in:
@@ -46,10 +46,11 @@ func getSnapshotRecordsFromDb(rowCount int) ([]*SnapshotRecord, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
rows.Next()
|
for i := 0; rows.Next(); i++ {
|
||||||
err = rows.Scan(records)
|
err = rows.Scan(records[i])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return records, nil
|
return records, nil
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user