Skip to content

Commit

Permalink
fix(python): Handle DB cursor descriptions that contain more fields t…
Browse files Browse the repository at this point in the history
…han the DBAPI2 standard (#17468)
  • Loading branch information
alexander-beedie authored Jul 7, 2024
1 parent a9fb237 commit e7915d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/io/database/_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def _infer_dtype_from_cursor_description(
description: tuple[Any, ...],
) -> PolarsDataType | None:
"""Attempt to infer Polars dtype from database cursor description `type_code`."""
type_code, _disp_size, internal_size, precision, scale, _null_ok = description
type_code, _disp_size, internal_size, precision, scale, *_ = description
dtype: PolarsDataType | None = None

if isclass(type_code):
Expand Down

0 comments on commit e7915d8

Please sign in to comment.