Fixed incorrect usage of string::find

This commit is contained in:
Serge Robyns
2017-07-15 15:56:13 +02:00
parent cd778444d6
commit 392b257694
+1 -1
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)