mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Fix build when the databases are enabled.
This commit is contained in:
parent
8ebb648d37
commit
cf51d4cd34
@ -64,11 +64,6 @@ QueryBuilder *MysqlQueryBuilder::values(const std::string ¶ms_str) {
|
||||
return this;
|
||||
}
|
||||
|
||||
QueryBuilder *MysqlQueryBuilder::limit(const int min, const int max) {
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
std::string MysqlQueryBuilder::escape(const std::string ¶ms) {
|
||||
if (!_db) {
|
||||
printf("MysqlQueryBuilder::escape !db!\n");
|
||||
@ -106,7 +101,7 @@ QueryResult *MysqlQueryBuilder::run() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return _db->query(query_result)
|
||||
return _db->query(query_result);
|
||||
}
|
||||
|
||||
void MysqlQueryBuilder::run_query() {
|
||||
@ -118,17 +113,17 @@ void MysqlQueryBuilder::run_query() {
|
||||
return;
|
||||
}
|
||||
|
||||
_db->query_run(query_result)
|
||||
_db->query_run(query_result);
|
||||
}
|
||||
|
||||
QueryBuilder *MysqlQueryBuilder::limit(const int num) {
|
||||
query_result += "LIMIT " + num + " ";
|
||||
//query_result += "LIMIT " + num + " ";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
virtual QueryBuilder *offset(const int num) {
|
||||
query_result += "OFFSET " + num + " ";
|
||||
QueryBuilder *MysqlQueryBuilder::offset(const int num) {
|
||||
//query_result += "OFFSET " + num + " ";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user