fix(mssql): avoid trying to return a resultset for DML queries with not resultset (#24999)

(cherry picked from commit 66eabc253f)
This commit is contained in:
Yuval Moshe
2023-08-21 14:33:26 +03:00
committed by Michael S. Molina
parent 994fd2301f
commit 34bc86a484
3 changed files with 13 additions and 1 deletions

View File

@@ -217,6 +217,7 @@ class ParsedQuery:
def limit(self) -> Optional[int]:
return self._limit
# pylint: disable=no-self-use
def _get_cte_tables(self, parsed: dict[str, Any]) -> list[dict[str, Any]]:
if "with" not in parsed:
return []