{
  "id": "go/database-sql-rows-next-after-error",
  "signature": "error: sql: Rows.Next called after Rows.Err",
  "signature_zh": "错误：sql：在Rows.Err之后调用Rows.Next",
  "regex": "error:\\ sql:\\ Rows\\.Next\\ called\\ after\\ Rows\\.Err",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Calling rows.Next() after an error has occurred during iteration, which is invalid and may panic.",
  "root_cause_type": "generic",
  "root_cause_zh": "在迭代过程中发生错误后调用rows.Next()，这是无效的，可能导致恐慌。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Ignoring rows.Err check",
      "why_fails": "May miss iteration errors; always check rows.Err after loop.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Always check rows.Err after the iteration loop",
      "success_rate": 0.98,
      "how": "for rows.Next() { /* process */ }\nif err := rows.Err(); err != nil { return err }",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.89,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-10-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}