diff options
author | Robert Adam <dev@robert-adam.de> | 2021-06-17 11:40:11 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2021-06-17 11:40:11 +0300 |
commit | 4931a3dc4cda2aaec1209baa8d571c4edc92c97a (patch) | |
tree | 1f461024826f13691eccf10d590e5acec64ee4b7 /src/murmur | |
parent | 7a126e87019bc174cc54fc40cb6ab44396c1334d (diff) |
REVERT: "FIX(server): Value queried but not used in DB insertion"
This reverts commit 7a126e87019bc174cc54fc40cb6ab44396c1334d.
The correct approch seems to be to add the value into the INSERT
statement instead of excluding it from the query one.
Diffstat (limited to 'src/murmur')
-rw-r--r-- | src/murmur/ServerDB.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/murmur/ServerDB.cpp b/src/murmur/ServerDB.cpp index 44550c6f8..551b39d86 100644 --- a/src/murmur/ServerDB.cpp +++ b/src/murmur/ServerDB.cpp @@ -733,7 +733,7 @@ ServerDB::ServerDB() { else SQLDO("INSERT INTO `%1users` (`server_id`, `user_id`, `name`, `pw`, `lastchannel`, `texture`, " "`last_active`) SELECT `server_id`, `user_id`, `name`, `pw`, `lastchannel`, `texture`, " - "`last_active` FROM `%1users%2`"); + "`last_active`, `last_disconnect` FROM `%1users%2`"); SQLDO("INSERT INTO `%1groups` (`group_id`, `server_id`, `name`, `channel_id`, `inherit`, `inheritable`) " "SELECT `group_id`, `server_id`, `name`, `channel_id`, `inherit`, `inheritable` FROM `%1groups%2`"); |