Merge pull request #178 from sergeken/master

Fixed incorrect usage of string::find
This commit is contained in:
Roland Bock
2017-07-15 16:20:53 +02:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ namespace sqlpp
static std::string escape(std::string arg)
{
if (arg.find('\''))
if (arg.find('\'') != std::string::npos)
{
std::string retVal;
for (const auto c : arg)