{
  "id": "go/database-sql-rows-scan-type-error",
  "signature": "sql: Scan error on column index 1: converting driver.Value type []uint8 (\"123\") to a int: invalid syntax",
  "signature_zh": "sql: 扫描第1列出错: 将driver.Value类型[]uint8(\"123\")转换为int: 无效语法",
  "regex": "sql:\\ Scan\\ error\\ on\\ column\\ index\\ 1:\\ converting\\ driver\\.Value\\ type\\ \\[\\]uint8\\ \\(\"123\"\\)\\ to\\ a\\ int:\\ invalid\\ syntax",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The database driver returned a type that cannot be directly converted to the destination Go type in Scan.",
  "root_cause_type": "generic",
  "root_cause_zh": "数据库驱动返回的类型无法直接转换为Scan中的目标Go类型。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "May lose numeric precision or cause type mismatches in downstream code.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Clunky and error-prone; may not handle all types correctly.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use sql.NullInt64 or specify the correct type in the SELECT query, e.g., CAST(column AS SIGNED).",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}