Skip to content

Commit 93f47bc

Browse files
committed
resolved comments-3
1 parent db1df08 commit 93f47bc

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

mssql_python/cursor.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def _map_sql_type(self, param, parameters_list, i):
233233
return (
234234
ddbc_sql_const.SQL_VARCHAR.value, # TODO: Add SQLDescribeParam to get correct type
235235
ddbc_sql_const.SQL_C_DEFAULT.value,
236-
0,
236+
1,
237237
0,
238238
False,
239239
)
@@ -513,18 +513,6 @@ def _create_parameter_types_list(self, parameter, param_info, parameters_list, i
513513
paraminfo.
514514
"""
515515
paraminfo = param_info()
516-
# Explicit None handling
517-
if parameter is None:
518-
paraminfo.paramSQLType = ddbc_sql_const.SQL_VARCHAR.value
519-
paraminfo.paramCType = ddbc_sql_const.SQL_C_CHAR.value
520-
paraminfo.columnSize = 0
521-
paraminfo.decimalDigits = 0
522-
paraminfo.isDAE = False
523-
paraminfo.inputOutputType = ddbc_sql_const.SQL_PARAM_INPUT.value
524-
paraminfo.strLenOrInd = ddbc_sql_const.SQL_NULL_DATA.value
525-
paraminfo.dataPtr = None
526-
return paraminfo
527-
528516
sql_type, c_type, column_size, decimal_digits, is_dae = self._map_sql_type(
529517
parameter, parameters_list, i
530518
)

0 commit comments

Comments
 (0)