Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQLite LIKE operator is case-insensitive. Hence the replacement must be case-insensitive too. If it is not, the keyword found by LIKE might not be replaced and will be found again and again. That will cause unlimited growth of sql_results. Example: https://en.cppreference.com/w/cpp/memory/allocator and Allocator template argument Another option would be using GLOB instead of LIKE for case-sensitive search. Whether it is better or not and search pattern selection is out of scope of this commit.
- Loading branch information