mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
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) {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user