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