Skip to content
Merged
8 changes: 4 additions & 4 deletions mssql_python/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,16 +373,16 @@ def _map_sql_type(self, param, parameters_list, i):
if utf16_len > MAX_INLINE_CHAR: # Long strings -> DAE
if is_unicode:
return (
ddbc_sql_const.SQL_WLONGVARCHAR.value,
ddbc_sql_const.SQL_WVARCHAR.value,
ddbc_sql_const.SQL_C_WCHAR.value,
utf16_len,
0,
0,
True,
)
return (
ddbc_sql_const.SQL_LONGVARCHAR.value,
ddbc_sql_const.SQL_VARCHAR.value,
ddbc_sql_const.SQL_C_CHAR.value,
len(param),
0,
0,
True,
)
Expand Down
Loading