# error: sql: expected 0 columns, got 3

- **ID:** `go/database-sql-query-row-without-scan`
- **Domain:** go
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Using QueryRow without scanning the result, leaving rows unclosed and causing resource leak.

## Version Compatibility

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

## Workarounds

1. **Always scan the result of QueryRow** (98% success)
   ```
   row := db.QueryRowContext(ctx, "SELECT name FROM users WHERE id = ?", id)
var name string
if err := row.Scan(&name); err != nil { return err }
   ```

## Dead Ends

- **Calling QueryRow and ignoring result** — Rows remain open; always scan or call Close. (80% fail)
