{
  "id": "python/sqlalchemy-exc-interface-error-cursor-closed",
  "signature": "sqlalchemy.exc.InterfaceError: (sqlite3.InterfaceError) Error binding parameter 0 - probably unsupported type.",
  "signature_zh": "绑定参数 0 时出错 - 可能是不支持的类型。",
  "regex": "sqlalchemy\\.exc\\.InterfaceError:\\ \\(sqlite3\\.InterfaceError\\)\\ Error\\ binding\\ parameter\\ 0\\ \\-\\ probably\\ unsupported\\ type\\.",
  "domain": "python",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "Passing a Python object that cannot be converted to a database-compatible type (e.g., a custom class instance without proper type adaptation).",
  "root_cause_type": "generic",
  "root_cause_zh": "传递了一个无法转换为数据库兼容类型的 Python 对象（例如，没有适当类型适配的自定义类实例）。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Converting to string blindly",
      "why_fails": "",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Retrying without type fix",
      "why_fails": "",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Convert to supported type",
      "success_rate": 0.9,
      "how": "Convert the value to a supported type like int, float, str, or datetime before passing to the query.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Register custom adapter",
      "success_rate": 0.8,
      "how": "Register a custom type adapter using sqlite3.register_adapter() for custom classes.",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-02-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}