diff --git a/include/sqlpp11/serializer_context.h b/include/sqlpp11/serializer_context.h index 828467d0..fa646553 100644 --- a/include/sqlpp11/serializer_context.h +++ b/include/sqlpp11/serializer_context.h @@ -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)