# error: sql: Rows.Next called after Rows.Err

- **ID:** `go/database-sql-rows-next-after-error`
- **Domain:** go
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Calling rows.Next() after an error has occurred during iteration, which is invalid and may panic.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.20 | active | — | — |
| 1.21 | active | — | — |

## Workarounds

1. **Always check rows.Err after the iteration loop** (98% success)
   ```
   for rows.Next() { /* process */ }
if err := rows.Err(); err != nil { return err }
   ```

## Dead Ends

- **Ignoring rows.Err check** — May miss iteration errors; always check rows.Err after loop. (90% fail)
