Skip to content

Conversation

boivie
Copy link

@boivie boivie commented Jul 28, 2011

UUIDs can already be created easily by using:
UUID('hex-string')

However, they were still printed as BinData(3, 'base64') which
makes it difficult to debug.

This patch will print UUID objects in the same way as they
can be created, i.e. using the UUID('hex-string') format.

Fixes SERVER-1201

UUIDs can already be created easily by using:
  UUID('hex-string')

However, they were still printed as BinData(3, 'base64') which
makes it difficult to debug.

This patch will print UUID objects in the same way as they
can be created, i.e. using the UUID('hex-string') format.

Fixes SERVER-1201
@benety benety changed the title Showing UUID binary types better SERVER-1201 Showing UUID binary types better Jun 6, 2014
@benety
Copy link
Contributor

benety commented Jun 6, 2014

@benety benety changed the title SERVER-1201 Showing UUID binary types better SERVER-1201 SERVER-3153 Showing UUID binary types better Jun 6, 2014
@benety
Copy link
Contributor

benety commented Jun 6, 2014

Hi Victor,

Unfortunately, this is not as straightforward as it seems because we have to deal with 2 subtypes for UUID (3 and 4). For a more in-depth discussion, please see the comments in:

https://jira.mongodb.org/browse/SERVER-3153

We are closing this pull request for now.

Thank you,
Ben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants