Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/firebird/driver/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3932,7 +3932,7 @@ def description(self) -> Tuple[DESCRIPTION]:
(name, type_code, display_size, internal_size, precision, scale, null_ok)
"""
if self._stmt is None:
return []
return None
if self._stmt._desc is None:
desc = []
for meta in self._stmt._out_desc:
Expand Down Expand Up @@ -3994,7 +3994,7 @@ def description(self) -> Tuple[DESCRIPTION]:
desc.append(tuple([meta.field if meta.field == meta.alias else meta.alias,
vtype, dispsize, meta.length, precision,
scale, meta.nullable]))
self._stmt._desc = tuple(desc)
self._stmt._desc = tuple(desc) if desc else None
return self._stmt._desc
@property
def affected_rows(self) -> int:
Expand Down