.net binary guid/uuid, almost?
Posted by: Elijah Glover
Date: September 16, 2008 07:46AM

Hi,

The newest mysql datalayer returns a guid datatype if a binary(16) is returned.
It looks to me like .net is picking up the wrong uuid/guid... in the wrong format

Formatted GUID Returned From .net mysql datalayer.
f06601f3-e979-dd40-a397-4c0caeb5bf0b

Original GUID: (should be)
f30166f0-79e9-40dd-a397-4c0caeb5bf0b

As you can see it has all the correct hex chars, in a different order.

Table Has A Binary(16) Primary Key Column, That parts fine.
SQL UNHEX(REPLACE(uuid(), '-', '')) this is the SQL that i am using to encode guid/uuid stirng to binary.

Its just when i run a datareader. and use guid.tostring

Any Ideas?



Edited 1 time(s). Last edit at 09/16/2008 07:47AM by Elijah Glover.

Options: ReplyQuote


Subject
Written By
Posted
.net binary guid/uuid, almost?
September 16, 2008 07:46AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.