Fix GH-629: unwrap Row params in execute() (root-cause fix) · microsoft/mssql-python@a5ce8f0 · GitHub
Skip to content

Commit a5ce8f0

Browse files
committed
Fix GH-629: unwrap Row params in execute() (root-cause fix)
execute() only unwrapped tuple/list/dict single args, so a Row (e.g. from fetchone()) was treated as a single scalar parameter, raising 'Unsupported parameter type'. Normalize a single Row arg to a tuple at the unwrap site so both execute(sql, row) and the executemany DAE fallback work. Removes the now-redundant Row->tuple pre-patch in the DAE path. Test uses isinstance(rows[0], mssql_python.Row) instead of fragile name check.
1 parent e87021c commit a5ce8f0

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎mssql_python/cursor.py‎

Lines changed: 6 additions & 5 deletions

‎tests/test_004_cursor.py‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)