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

Handle None value in unique constraint check #66

Merged
merged 1 commit into from
Jun 19, 2015

Conversation

alewisohn
Copy link

According to the SQL standard, a NULL value does not count towards uniqueness in a column defined as UNIQUE. When checking constraints, ignore fields that allow NULL when the value is None.

…iqueness in a column defined as UNIQUE. When checking constraints, ignore fields that allow NULL when the value is None.
gregmuellegger added a commit that referenced this pull request Jun 19, 2015
Handle None value in unique constraint check. Thanks @alewisohn
@gregmuellegger gregmuellegger merged commit e5cf5f2 into gregmuellegger:master Jun 19, 2015
@gregmuellegger
Copy link
Owner

Cool that makes sense! Thanks for taking the time to implement this.

@gregmuellegger
Copy link
Owner

Hey I just released 0.10.1 which contains your changes.

@alewisohn
Copy link
Author

Great. Thanks for responding so quickly.

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