Skip to content

Commit

Permalink
Fix | SqlBuffer.get_SqlGuid could return incorrect Guid (#2310)
Browse files Browse the repository at this point in the history
after SetToNullOfType(StorageType.Guid) is invoked
  • Loading branch information
wilbit committed Jan 24, 2024
1 parent 6b67060 commit ebf0c88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ internal SqlGuid SqlGuid
{
if (StorageType.Guid == _type)
{
return new SqlGuid(_value._guid);
return IsNull ? SqlGuid.Null : new SqlGuid(_value._guid);
}
else if (StorageType.SqlGuid == _type)
{
Expand Down

0 comments on commit ebf0c88

Please sign in to comment.