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

Incorrect argument validation exception #2487

Closed
OlegLevitsky opened this issue May 30, 2024 · 0 comments · Fixed by #2498
Closed

Incorrect argument validation exception #2487

OlegLevitsky opened this issue May 30, 2024 · 0 comments · Fixed by #2498
Assignees

Comments

@OlegLevitsky
Copy link

Query.Contains checks the String.IsNullOrWhiteSpace instead of String.IsNullOrEmpty

https://github.com/mbdavid/LiteDB/blob/5a4696606b4fc58554f01d725f621bd3e553fd18/LiteDB/Client/Structures/Query.cs#L126

  1. It causes incorrect ArgumentNullExcpeption for a spaces sequence
  2. There is no reason to restrict the search by spaces, because the same LIKE query works correct
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 a pull request may close this issue.

2 participants