Skip to content

Commit

Permalink
Merge pull request #80 from junctionapps/junctionapps-guid-as-bytes
Browse files Browse the repository at this point in the history
Fixes GUIDS from MS SQL returning as strings - return as bytes instead
  • Loading branch information
braian87b authored Jun 17, 2018
2 parents f3bd601 + c6d80e3 commit e204b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypyodbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def Decimal_cvt(x):
SQL_BIT : (bool, lambda x:x == BYTE_1, SQL_C_CHAR, create_buffer, 2 , False ),
SQL_WCHAR : (unicode, lambda x: x, SQL_C_WCHAR, create_buffer_u, 2048 , False ),
SQL_WVARCHAR : (unicode, lambda x: x, SQL_C_WCHAR, create_buffer_u, 2048 , False ),
SQL_GUID : (str, str, SQL_C_CHAR, create_buffer, 2048 , False ),
SQL_GUID : (str, lambda x: x, SQL_C_CHAR, create_buffer, 2048 , False ),
SQL_WLONGVARCHAR : (unicode, lambda x: x, SQL_C_WCHAR, create_buffer_u, 20500 , True ),
SQL_TYPE_DATE : (datetime.date, dt_cvt, SQL_C_CHAR, create_buffer, 30 , False ),
SQL_TYPE_TIME : (datetime.time, tm_cvt, SQL_C_CHAR, create_buffer, 20 , False ),
Expand Down

0 comments on commit e204b88

Please sign in to comment.