# sqlalchemy.exc.InterfaceError: (sqlite3.InterfaceError) Error binding parameter 0 - probably unsupported type.

- **ID:** `python/sqlalchemy-exc-interface-error-cursor-closed`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## 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).

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **Convert to supported type** (90% success)
   ```
   Convert the value to a supported type like int, float, str, or datetime before passing to the query.
   ```
2. **Register custom adapter** (80% success)
   ```
   Register a custom type adapter using sqlite3.register_adapter() for custom classes.
   ```

## Dead Ends

- **Converting to string blindly** —  (50% fail)
- **Retrying without type fix** —  (90% fail)
