From 392b257694f394d56f1ec14fa4a7e1fff6e8a8d8 Mon Sep 17 00:00:00 2001 From: Serge Robyns Date: Sat, 15 Jul 2017 15:56:13 +0200 Subject: [PATCH] Fixed incorrect usage of string::find --- include/sqlpp11/serializer_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)