absences
William Perron 2 years ago
parent b2d5332f67
commit 4dcbbaa226

@ -31,7 +31,10 @@ func FormatRows(rows *sql.Rows) (string, error) {
for i := range row { for i := range row {
row[i] = new(string) row[i] = new(string)
} }
rows.Scan(row...) if err := rows.Scan(row...); err != nil {
return "", fmt.Errorf("failed to scan next row: %w", err)
}
scanned = append(scanned, row) // keep track of row for later scanned = append(scanned, row) // keep track of row for later
for i, a := range row { for i, a := range row {
s := a.(*string) s := a.(*string)

Loading…
Cancel
Save