mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Fix typo.
This commit is contained in:
parent
02c4294cda
commit
6073ef90c9
@ -5,7 +5,7 @@
|
||||
QueryBuilder *QueryBuilder::select() {
|
||||
return this;
|
||||
}
|
||||
QueryBuilder *QueryBuilder::udpate() {
|
||||
QueryBuilder *QueryBuilder::update() {
|
||||
return this;
|
||||
}
|
||||
QueryBuilder *QueryBuilder::del() {
|
||||
@ -43,7 +43,7 @@ QueryBuilder *QueryBuilder::like() {
|
||||
QueryBuilder *QueryBuilder::select(const std::string ¶ms) {
|
||||
return this;
|
||||
}
|
||||
QueryBuilder *QueryBuilder::udpate(const std::string ¶ms) {
|
||||
QueryBuilder *QueryBuilder::update(const std::string ¶ms) {
|
||||
return this;
|
||||
}
|
||||
QueryBuilder *QueryBuilder::del(const std::string ¶ms) {
|
||||
@ -125,8 +125,8 @@ QueryBuilder *QueryBuilder::wp(const std::string &col, const bool param) {
|
||||
QueryBuilder *QueryBuilder::eselect(const std::string ¶ms) {
|
||||
return select(escape(params));
|
||||
}
|
||||
QueryBuilder *QueryBuilder::eudpate(const std::string ¶ms) {
|
||||
return udpate(escape(params));
|
||||
QueryBuilder *QueryBuilder::eupdate(const std::string ¶ms) {
|
||||
return update(escape(params));
|
||||
}
|
||||
QueryBuilder *QueryBuilder::edel(const std::string ¶ms) {
|
||||
return del(escape(params));
|
||||
|
@ -12,7 +12,7 @@ class QueryResult;
|
||||
class QueryBuilder : public Reference {
|
||||
public:
|
||||
virtual QueryBuilder *select();
|
||||
virtual QueryBuilder *udpate();
|
||||
virtual QueryBuilder *update();
|
||||
virtual QueryBuilder *del();
|
||||
|
||||
virtual QueryBuilder *where();
|
||||
@ -27,7 +27,7 @@ public:
|
||||
virtual QueryBuilder *like();
|
||||
|
||||
virtual QueryBuilder *select(const std::string ¶ms);
|
||||
virtual QueryBuilder *udpate(const std::string ¶ms);
|
||||
virtual QueryBuilder *update(const std::string ¶ms);
|
||||
virtual QueryBuilder *del(const std::string ¶ms);
|
||||
|
||||
virtual QueryBuilder *where(const std::string ¶ms);
|
||||
@ -57,7 +57,7 @@ public:
|
||||
virtual QueryBuilder *wp(const std::string &col, const bool param);
|
||||
|
||||
virtual QueryBuilder *eselect(const std::string ¶ms);
|
||||
virtual QueryBuilder *eudpate(const std::string ¶ms);
|
||||
virtual QueryBuilder *eupdate(const std::string ¶ms);
|
||||
virtual QueryBuilder *edel(const std::string ¶ms);
|
||||
|
||||
virtual QueryBuilder *ewhere(const std::string ¶ms);
|
||||
|
@ -10,7 +10,7 @@ QueryBuilder *SQLite3QueryBuilder::select() {
|
||||
|
||||
return this;
|
||||
}
|
||||
QueryBuilder *SQLite3QueryBuilder::udpate() {
|
||||
QueryBuilder *SQLite3QueryBuilder::update() {
|
||||
query_result += "UPDATE ";
|
||||
|
||||
return this;
|
||||
@ -70,7 +70,7 @@ QueryBuilder *SQLite3QueryBuilder::select(const std::string ¶ms) {
|
||||
|
||||
return this;
|
||||
}
|
||||
QueryBuilder *SQLite3QueryBuilder::udpate(const std::string ¶ms) {
|
||||
QueryBuilder *SQLite3QueryBuilder::update(const std::string ¶ms) {
|
||||
query_result += "UPDATE " + params + " ";
|
||||
|
||||
return this;
|
||||
|
@ -11,7 +11,7 @@ class SQLite3Database;
|
||||
class SQLite3QueryBuilder : public QueryBuilder {
|
||||
public:
|
||||
QueryBuilder *select();
|
||||
QueryBuilder *udpate();
|
||||
QueryBuilder *update();
|
||||
QueryBuilder *del();
|
||||
|
||||
QueryBuilder *where();
|
||||
@ -26,7 +26,7 @@ public:
|
||||
QueryBuilder *like();
|
||||
|
||||
QueryBuilder *select(const std::string ¶ms);
|
||||
QueryBuilder *udpate(const std::string ¶ms);
|
||||
QueryBuilder *update(const std::string ¶ms);
|
||||
QueryBuilder *del(const std::string ¶ms);
|
||||
|
||||
QueryBuilder *where(const std::string ¶ms);
|
||||
|
@ -68,7 +68,7 @@ void RBACModel::save_rank(const Ref<RBACRank> &rank) {
|
||||
|
||||
r->id = res->get_last_insert_rowid();
|
||||
} else {
|
||||
qb->udpate(RBAC_RANK_TABLE)->set();
|
||||
qb->update(RBAC_RANK_TABLE)->set();
|
||||
qb->esetp("name", rank->name);
|
||||
qb->esetp("name_internal", rank->name_internal);
|
||||
qb->esetp("settings", rank->settings);
|
||||
|
@ -105,7 +105,7 @@ void UserModel::save_user(Ref<User> &user) {
|
||||
|
||||
user->id = r->get_last_insert_rowid();
|
||||
} else {
|
||||
b->udpate(_table_name);
|
||||
b->update(_table_name);
|
||||
b->set();
|
||||
b->esetp("username", user->name_user_input);
|
||||
b->esetp("email", user->email_user_input);
|
||||
|
Loading…
Reference in New Issue
Block a user