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

equalsIgnoreCase doesn't work with MongoDB #85

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

equalsIgnoreCase doesn't work with MongoDB #85

stdll opened this issue Jan 20, 2012 · 1 comment

Comments

@stdll
Copy link

@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
Copy link
Member

@timowest 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants