mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-06 17:51:36 +02: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) {
|
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
Block a user