Properly quote string in 2 sqlite query builder methods.
This commit is contained in:
parent
9d8a752707
commit
f69597c723
|
@ -190,12 +190,12 @@ QueryBuilder *SQLite3QueryBuilder::setp(const std::string &col, const bool param
|
||||||
}
|
}
|
||||||
|
|
||||||
QueryBuilder *SQLite3QueryBuilder::wp(const std::string &col, const std::string ¶m) {
|
QueryBuilder *SQLite3QueryBuilder::wp(const std::string &col, const std::string ¶m) {
|
||||||
query_result += col + "=" + param + "' ";
|
query_result += col + "='" + param + "' ";
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
QueryBuilder *SQLite3QueryBuilder::wp(const std::string &col, const char *param) {
|
QueryBuilder *SQLite3QueryBuilder::wp(const std::string &col, const char *param) {
|
||||||
query_result += col + "=" + std::string(param) + "' ";
|
query_result += col + "='" + std::string(param) + "' ";
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue