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

equalsIgnoreCase doesn't work with MongoDB #85

Closed
stdll opened this Issue Jan 20, 2012 · 1 comment

Comments

Projects
None yet
3 participants
@stdll

stdll commented Jan 20, 2012

I've recently discovered that using the equalsIgnoreCase operation on a String property doesn't yield the desired result.

An example: I have two user acccounts "Rodney" and "Silvia". Even if I search for a part of one of the account's names, I get the account in the result set. So, code like this:

QAccount.account.name.equalsIgnoreCase("R")

yields "Rodney" as result, but it shouldn't. I suspect you have implemented this using $regex with the i option. In this case you don't have to use "R" as search string, but rather "^R$".

@ghost ghost assigned mangolas Jan 23, 2012

timowest added a commit that referenced this issue Jan 29, 2012

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Feb 7, 2012

Member

released in 2.3.1

Member

timowest commented Feb 7, 2012

released in 2.3.1

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