void Servatrice_DatabaseInterface::clearSessionTables() { lockSessionTables(); QSqlQuery *query = prepareQuery("update {prefix}_sessions set end_time=now() where end_time is null and id_server = :id_server"); query->bindValue(":id_server", server->getServerID()); execSqlQuery(query); unlockSessionTables(); }
void Servatrice_DatabaseInterface::clearSessionTables() { lockSessionTables(); QSqlQuery query(sqlDatabase); query.prepare("update " + server->getDbPrefix() + "_sessions set end_time=now() where end_time is null and id_server = :id_server"); query.bindValue(":id_server", server->getServerId()); query.exec(); unlockSessionTables(); }