Skip to content

Commit c8fbd45

Browse files
committed
fix string parsing for uuid
1 parent 6af4610 commit c8fbd45

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

mssql_python/cursor.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -363,19 +363,6 @@ def _map_sql_type(self, param, parameters_list, i, min_val=None, max_val=None):
363363
False,
364364
)
365365

366-
try:
367-
val = uuid.UUID(param)
368-
parameters_list[i] = val.bytes_le
369-
return (
370-
ddbc_sql_const.SQL_GUID.value,
371-
ddbc_sql_const.SQL_C_GUID.value,
372-
16,
373-
0,
374-
False
375-
)
376-
except ValueError:
377-
pass
378-
379366
# String mapping logic here
380367
is_unicode = self._is_unicode_string(param)
381368

0 commit comments

Comments
 (0)