Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing arrays of UUID #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dgouldin
Copy link

@dgouldin dgouldin commented Oct 4, 2014

The psycopg2 adapter being used for UUIDField didn't handle edge cases
around arrays well and, in the case of an empty array of UUIDs, was not
being registered. psycopg2 itself already includes a UUID adapter, so
this commit switches to using it and registers the adapter at the module
level.

Regression tests have been added to ensure that arrays of UUIDs (both
populated and empty) continue to work.

The psycopg2 adapter being used for UUIDField didn't handle edge cases
around arrays well and, in the case of an empty array of UUIDs, was not
being registered. psycopg2 itself already includes a UUID adapter, so
this commit switches to using it and registers the adapter at the module
level.

Regression tests have been added to ensure that arrays of UUIDs (both
populated and empty) continue to work.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling ec52dd3 on dgouldin:fix_uuid_array into e053f14 on lukesneeringer:master.

@lukesneeringer
Copy link
Owner

Will verify this soon and merge.

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.

3 participants