mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
parent
8a5d71a565
commit
d24af1e639
@ -394,8 +394,8 @@ void DbConnection::PrepareDatabase(void)
|
|||||||
//ClearConfigTable("contactgroups");
|
//ClearConfigTable("contactgroups");
|
||||||
//ClearConfigTable("contacts");
|
//ClearConfigTable("contacts");
|
||||||
//ClearConfigTable("contactstatus");
|
//ClearConfigTable("contactstatus");
|
||||||
ClearConfigTable("customvariables");
|
//ClearConfigTable("customvariables");
|
||||||
ClearConfigTable("customvariablestatus");
|
//ClearConfigTable("customvariablestatus");
|
||||||
//ClearConfigTable("endpoints");
|
//ClearConfigTable("endpoints");
|
||||||
//ClearConfigTable("endpointstatus");
|
//ClearConfigTable("endpointstatus");
|
||||||
ClearConfigTable("host_contactgroups");
|
ClearConfigTable("host_contactgroups");
|
||||||
|
@ -442,9 +442,9 @@ void IdoMysqlConnection::FinishAsyncQueries(bool force)
|
|||||||
for (std::vector<IdoAsyncQuery>::size_type i = offset; i < offset + count; i++) {
|
for (std::vector<IdoAsyncQuery>::size_type i = offset; i < offset + count; i++) {
|
||||||
const IdoAsyncQuery& aq = queries[i];
|
const IdoAsyncQuery& aq = queries[i];
|
||||||
|
|
||||||
m_AffectedRows = mysql_affected_rows(&m_Connection);
|
MYSQL_RES *result = mysql_store_result(&m_Connection);
|
||||||
|
|
||||||
MYSQL_RES *result = mysql_use_result(&m_Connection);
|
m_AffectedRows = mysql_affected_rows(&m_Connection);
|
||||||
|
|
||||||
IdoMysqlResult iresult;
|
IdoMysqlResult iresult;
|
||||||
|
|
||||||
@ -510,9 +510,9 @@ IdoMysqlResult IdoMysqlConnection::Query(const String& query)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_AffectedRows = mysql_affected_rows(&m_Connection);
|
MYSQL_RES *result = mysql_store_result(&m_Connection);
|
||||||
|
|
||||||
MYSQL_RES *result = mysql_use_result(&m_Connection);
|
m_AffectedRows = mysql_affected_rows(&m_Connection);
|
||||||
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
if (mysql_field_count(&m_Connection) > 0) {
|
if (mysql_field_count(&m_Connection) > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user