String literals in C++ have a trailing null character, so the current code is fine to rely on that implicitly. However,
- the sqlite documentation explicitly mentions the null character
- code readers may wonder if the code is intentional
- clang-tidy warns about the code via
bugprone-string-constructor
Address the points by putting the null character into the code and enable the clang-tidy bugprone-string-constructor
check.