Skip to content

Commit 217ad43

Browse files
committed
Fix desctiption update
1 parent a34ee99 commit 217ad43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ydb_dbapi/cursors.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ def _update_result_set(
9292
self._rows_count = new_rows_count
9393

9494
def _update_description(self, result_set: ydb.convert.ResultSet) -> None:
95+
if not result_set.columns:
96+
# We should not rely on 'empty' result sets,
97+
# because they can appear at any moment
98+
return
99+
95100
self._description = [
96101
(
97102
col.name,

0 commit comments

Comments
 (0)