mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
fix(mssql): avoid trying to return a resultset for DML queries with not resultset (#24999)
This commit is contained in:
@@ -141,6 +141,8 @@ class MssqlEngineSpec(BaseEngineSpec):
|
||||
def fetch_data(
|
||||
cls, cursor: Any, limit: Optional[int] = None
|
||||
) -> list[tuple[Any, ...]]:
|
||||
if not cursor.description:
|
||||
return []
|
||||
data = super().fetch_data(cursor, limit)
|
||||
# Lists of `pyodbc.Row` need to be unpacked further
|
||||
return cls.pyodbc_rows_to_tuples(data)
|
||||
|
||||
Reference in New Issue
Block a user