Skip to content

Commit d17d9b1

Browse files
fix: Remove duplicate DDBCSQLDescribeCol call in execute()
1 parent 080138a commit d17d9b1

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

mssql_python/cursor.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,16 +1467,6 @@ def execute( # pylint: disable=too-many-locals,too-many-branches,too-many-state
14671467
self._cached_column_map = None
14681468
self._cached_converter_map = None
14691469

1470-
# After successful execution, initialize description if there are results
1471-
column_metadata = []
1472-
try:
1473-
ddbc_bindings.DDBCSQLDescribeCol(self.hstmt, column_metadata)
1474-
self._initialize_description(column_metadata)
1475-
except Exception as e:
1476-
# If describe fails, it's likely there are no results (e.g., for INSERT)
1477-
self.description = None
1478-
self._column_metadata = None # Clear metadata to prevent stale data
1479-
14801470
self._reset_inputsizes() # Reset input sizes after execution
14811471
# Return self for method chaining
14821472
return self

0 commit comments

Comments
 (0)