You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get strange results when using Uuid::import on a uuid returned from an SQL Server uniqueidentifier filled by the SQL default newsequentialid() like this:
The last bit should have returned the model, from which I previously got the uuid.
The actual uuid as I see it in SQL Server Management Studio looks like this though:
I've since given up on the issue but I was able to figure out it has something to do with SQL Server storing the UUID in little or big endian.
I hope this helps someone.
I get strange results when using
Uuid::import
on a uuid returned from an SQL Serveruniqueidentifier
filled by the SQL defaultnewsequentialid()
like this:The last bit should have returned the model, from which I previously got the uuid.
The actual uuid as I see it in SQL Server Management Studio looks like this though:
SQL: 825B076B-44EC-E511-80DC-00155D0ABC54
PHP: 6B075B82-EC44-11E5-80DC-00155D0ABC54
The first two blocks seem to be in reversed order.
When using the first uuid I can find the model as expected:
Am I missing something here?
The text was updated successfully, but these errors were encountered: