Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Small fix in description when metadata property is not present in cursor's _result_set #1088

Merged
merged 1 commit into from Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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