Skip to content

Commit e7915d8

Browse files
fix(python): Handle DB cursor descriptions that contain more fields than the DBAPI2 standard (#17468)
1 parent a9fb237 commit e7915d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py-polars/polars/io/database/_inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def _infer_dtype_from_cursor_description(
203203
description: tuple[Any, ...],
204204
) -> PolarsDataType | None:
205205
"""Attempt to infer Polars dtype from database cursor description `type_code`."""
206-
type_code, _disp_size, internal_size, precision, scale, _null_ok = description
206+
type_code, _disp_size, internal_size, precision, scale, *_ = description
207207
dtype: PolarsDataType | None = None
208208

209209
if isclass(type_code):

0 commit comments

Comments
 (0)