MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ClearTableBySession

Method ClearTableBySession

lib/db_ido_pgsql/idopgsqlconnection.cpp:473–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473void IdoPgsqlConnection::ClearTableBySession(const String& table)
474{
475 IncreasePendingQueries(1);
476 Query("DELETE FROM " + GetTablePrefix() + table + " WHERE instance_id = " +
477 Convert::ToString(static_cast<long>(m_InstanceID)) + " AND session_token <> " +
478 Convert::ToString(GetSessionToken()));
479}
480
481IdoPgsqlResult IdoPgsqlConnection::Query(const String& query)
482{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected