1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 01:36:38 +02:00

fixed a compile error in m_sqlite

This commit is contained in:
DukePyrolator
2012-04-08 19:29:56 +02:00
parent deb5196101
commit 7372b457cc
+2 -2
View File
@@ -229,8 +229,8 @@ Anope::string SQLiteService::BuildQuery(const SQLQuery &q)
{
Anope::string real_query = q.query;
for (std::map<Anope::string, Anope::string>::const_iterator it = q.parameters.begin(), it_end = q.parameters.end(); it != it_end; ++it)
real_query = real_query.replace_all_cs("@" + it->first + "@", "'" + this->Escape(it->second) + "'");
for (std::map<Anope::string, QueryData>::const_iterator it = q.parameters.begin(), it_end = q.parameters.end(); it != it_end; ++it)
real_query = real_query.replace_all_cs("@" + it->first + "@", (it->second.escape ? ("'" + this->Escape(it->second.data) + "'") : it->second.data));
return real_query;
}