Fix typos in removeUser, making it work with postgresql
This commit is contained in:
parent
6eb53393c7
commit
bd756141e2
1 changed files with 4 additions and 4 deletions
|
@ -353,10 +353,10 @@ bool PQXXBackend::getBuddies(long id, std::list<BuddyInfo> &roster) {
|
|||
bool PQXXBackend::removeUser(long id) {
|
||||
try {
|
||||
pqxx::nontransaction txn(*m_conn);
|
||||
txn.exec("DELETE FROM " + m_prefix + "users SET id=" + pqxx::to_string(id));
|
||||
txn.exec("DELETE FROM " + m_prefix + "buddies SET user_id=" + pqxx::to_string(id));
|
||||
txn.exec("DELETE FROM " + m_prefix + "user_settings SET user_id=" + pqxx::to_string(id));
|
||||
txn.exec("DELETE FROM " + m_prefix + "buddies_settings SET user_id=" + pqxx::to_string(id));
|
||||
txn.exec("DELETE FROM " + m_prefix + "users WHERE id=" + pqxx::to_string(id));
|
||||
txn.exec("DELETE FROM " + m_prefix + "buddies WHERE user_id=" + pqxx::to_string(id));
|
||||
txn.exec("DELETE FROM " + m_prefix + "user_settings WHERE user_id=" + pqxx::to_string(id));
|
||||
txn.exec("DELETE FROM " + m_prefix + "buddies_settings WHERE user_id=" + pqxx::to_string(id));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue