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

Already on GitHub? Sign in to your account

Add support for the citext data type #53

Merged
merged 1 commit into from Jan 23, 2013

Conversation

Projects
None yet
2 participants
Contributor

daikini commented Jan 23, 2013

The citext module provides a case-insensitive character string type, citext.
Essentially, it internally calls lower when comparing values.
Otherwise, it behaves almost exactly like text.

@daikini daikini Add support for the citext data type
The citext module provides a case-insensitive character string type, citext.
Essentially, it internally calls lower when comparing values.
Otherwise, it behaves almost exactly like text.
cf3bf45
Contributor

danmcclain commented Jan 23, 2013

I wasn't even aware of citext! If you insert THIS STRING, is the same value returned, or is the lowercase version returned?

Thanks!

@danmcclain danmcclain added a commit that referenced this pull request Jan 23, 2013

@danmcclain danmcclain Merge pull request #53 from daikini/add_support_for_citext_data_type
Add support for the citext data type
c524834

@danmcclain danmcclain merged commit c524834 into DockYard:master Jan 23, 2013

1 check passed

default The Travis build passed
Details
Contributor

daikini commented Jan 23, 2013

Thanks for merging in the pull request!

The value inserted in is returned so if you insert THIS STRING then THIS STRING will be returned. What's great is if you do Person.find_by_name("This string") then it will find the person regardless of the case of the string that was inserted.

Contributor

danmcclain commented Jan 23, 2013

Very cool. Shows how badly I should read through the PostgreSQL manuals! Thanks again

@daikini daikini deleted the unknown repository branch Jan 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment