# error: sql: Scan error on column index 1, name "age": converting driver.Value type int64 ("25") to a uint8: invalid syntax

- **ID:** `go/sql-rows-scan-type-mismatch`
- **Domain:** go
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

数据库返回 int64 类型，但目标变量声明为 uint8，导致类型转换失败。

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   将目标变量改为 int64 或 sql.NullInt64
   ```
2. **** (80% success)
   ```
   在 SQL 查询中使用 CAST(age AS UNSIGNED) 预转换
   ```

## Dead Ends

- **** — database/sql 内部处理类型转换，断言无效且可能 panic (80% fail)
- **** — 数据错误被静默忽略，导致业务逻辑使用错误数据 (70% fail)
