Skip to content

Commit 4904d97

Browse files
committed
Fix NULL parameter type mapping for VARBINARY columns (#458)
1 parent 95eef16 commit 4904d97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mssql_python/cursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def _map_sql_type( # pylint: disable=too-many-arguments,too-many-positional-arg
392392
if param is None:
393393
logger.debug("_map_sql_type: NULL parameter - index=%d", i)
394394
return (
395-
ddbc_sql_const.SQL_VARCHAR.value,
395+
ddbc_sql_const.SQL_UNKNOWN_TYPE.value,
396396
ddbc_sql_const.SQL_C_DEFAULT.value,
397397
1,
398398
0,

0 commit comments

Comments
 (0)