Properly quote string in 2 sqlite query builder methods.

This commit is contained in:
Relintai 2021-08-22 22:32:18 +02:00
parent 9d8a752707
commit f69597c723
1 changed files with 2 additions and 2 deletions

View File

@ -190,12 +190,12 @@ QueryBuilder *SQLite3QueryBuilder::setp(const std::string &col, const bool param
}
QueryBuilder *SQLite3QueryBuilder::wp(const std::string &col, const std::string &param) {
query_result += col + "=" + param + "' ";
query_result += col + "='" + param + "' ";
return this;
}
QueryBuilder *SQLite3QueryBuilder::wp(const std::string &col, const char *param) {
query_result += col + "=" + std::string(param) + "' ";
query_result += col + "='" + std::string(param) + "' ";
return this;
}