mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Merge pull request #178 from sergeken/master
Fixed incorrect usage of string::find
This commit is contained in:
commit
b8fa0a10ce
@ -44,7 +44,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
static std::string escape(std::string arg)
|
static std::string escape(std::string arg)
|
||||||
{
|
{
|
||||||
if (arg.find('\''))
|
if (arg.find('\'') != std::string::npos)
|
||||||
{
|
{
|
||||||
std::string retVal;
|
std::string retVal;
|
||||||
for (const auto c : arg)
|
for (const auto c : arg)
|
||||||
|
Loading…
Reference in New Issue
Block a user