Fix typo.

This commit is contained in:
Relintai 2021-11-01 17:00:55 +01:00
parent 02c4294cda
commit 6073ef90c9
6 changed files with 13 additions and 13 deletions

View File

@ -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 &params) {
return this;
}
QueryBuilder *QueryBuilder::udpate(const std::string &params) {
QueryBuilder *QueryBuilder::update(const std::string &params) {
return this;
}
QueryBuilder *QueryBuilder::del(const std::string &params) {
@ -125,8 +125,8 @@ QueryBuilder *QueryBuilder::wp(const std::string &col, const bool param) {
QueryBuilder *QueryBuilder::eselect(const std::string &params) {
return select(escape(params));
}
QueryBuilder *QueryBuilder::eudpate(const std::string &params) {
return udpate(escape(params));
QueryBuilder *QueryBuilder::eupdate(const std::string &params) {
return update(escape(params));
}
QueryBuilder *QueryBuilder::edel(const std::string &params) {
return del(escape(params));

View File

@ -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 &params);
virtual QueryBuilder *udpate(const std::string &params);
virtual QueryBuilder *update(const std::string &params);
virtual QueryBuilder *del(const std::string &params);
virtual QueryBuilder *where(const std::string &params);
@ -57,7 +57,7 @@ public:
virtual QueryBuilder *wp(const std::string &col, const bool param);
virtual QueryBuilder *eselect(const std::string &params);
virtual QueryBuilder *eudpate(const std::string &params);
virtual QueryBuilder *eupdate(const std::string &params);
virtual QueryBuilder *edel(const std::string &params);
virtual QueryBuilder *ewhere(const std::string &params);

View File

@ -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 &params) {
return this;
}
QueryBuilder *SQLite3QueryBuilder::udpate(const std::string &params) {
QueryBuilder *SQLite3QueryBuilder::update(const std::string &params) {
query_result += "UPDATE " + params + " ";
return this;

View File

@ -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 &params);
QueryBuilder *udpate(const std::string &params);
QueryBuilder *update(const std::string &params);
QueryBuilder *del(const std::string &params);
QueryBuilder *where(const std::string &params);

View File

@ -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);

View File

@ -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);