mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-02-20 15:14:26 +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;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
QueryBuilder *MysqlQueryBuilder::limit(const int min, const int max) {
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string MysqlQueryBuilder::escape(const std::string ¶ms) {
|
std::string MysqlQueryBuilder::escape(const std::string ¶ms) {
|
||||||
if (!_db) {
|
if (!_db) {
|
||||||
printf("MysqlQueryBuilder::escape !db!\n");
|
printf("MysqlQueryBuilder::escape !db!\n");
|
||||||
@ -106,7 +101,7 @@ QueryResult *MysqlQueryBuilder::run() {
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
return _db->query(query_result)
|
return _db->query(query_result);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MysqlQueryBuilder::run_query() {
|
void MysqlQueryBuilder::run_query() {
|
||||||
@ -118,17 +113,17 @@ void MysqlQueryBuilder::run_query() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_db->query_run(query_result)
|
_db->query_run(query_result);
|
||||||
}
|
}
|
||||||
|
|
||||||
QueryBuilder *MysqlQueryBuilder::limit(const int num) {
|
QueryBuilder *MysqlQueryBuilder::limit(const int num) {
|
||||||
query_result += "LIMIT " + num + " ";
|
//query_result += "LIMIT " + num + " ";
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual QueryBuilder *offset(const int num) {
|
QueryBuilder *MysqlQueryBuilder::offset(const int num) {
|
||||||
query_result += "OFFSET " + num + " ";
|
//query_result += "OFFSET " + num + " ";
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user