Use correct type for SQL case-selected value.
This commit is contained in:
parent
4de9720c1f
commit
2190792369
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ void ban_check::read(mariadb::result_set_ref rslt)
|
|||
{
|
||||
if(rslt->next())
|
||||
{
|
||||
ban_type = rslt->get_signed64("ban_type");
|
||||
ban_type = rslt->get_signed32("ban_type");
|
||||
ban_duration = rslt->get_signed32("ban_end") != 0 ? rslt->get_signed32("ban_end") - std::time(nullptr) : 0;
|
||||
user_id = rslt->get_signed32("ban_userid");
|
||||
email = rslt->get_string("ban_email");
|
||||
|
|
Loading…
Add table
Reference in a new issue