You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DBAPI2.0] Fix the description attribute (duckdb#43)
Fixesduckdblabs/duckdb-internal#1217,
duckdb/duckdb#10495
This PR should make a better attempt at implementing
https://peps.python.org/pep-0249/#type-objects-and-constructors
We add the required type object sentinels:
- `STRING`
- `NUMBER`
- `DATETIME`
- `BINARY`
- `ROWID` (None, as DuckDB doesn't have a way to detect this on a
LogicalType)
The objects returned for the `type_code` of the `description` is a
`DuckDBPyType`.
The sentinels are of type `DBAPITypeObject` and are overloaded to be
compared with the `DuckDBPyType` objects.
The constructors listed by the PEP are not added, they could be added in
the future.
0 commit comments