[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: Small fix in description when metadata is not present in cursor'…
Browse files Browse the repository at this point in the history
…s _result_set (#1088)
  • Loading branch information
ankiaga committed Jan 30, 2024
1 parent 2d98b54 commit 57643e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/spanner_dbapi/cursor.py
Expand Up @@ -126,7 +126,7 @@ def description(self):
"""
if (
self._result_set is None
or self._result_set.metadata is None
or not getattr(self._result_set, "metadata", None)
or self._result_set.metadata.row_type is None
or self._result_set.metadata.row_type.fields is None
or len(self._result_set.metadata.row_type.fields) == 0
Expand Down

0 comments on commit 57643e6

Please sign in to comment.