mirror of https://github.com/Icinga/icinga2.git
parent
2f8d416da0
commit
36c170d5dc
|
@ -682,13 +682,16 @@ bool IdoMysqlConnection::FieldToEscapedString(const String& key, const Value& va
|
||||||
if (key == "instance_id") {
|
if (key == "instance_id") {
|
||||||
*result = static_cast<long>(m_InstanceID);
|
*result = static_cast<long>(m_InstanceID);
|
||||||
return true;
|
return true;
|
||||||
}
|
} else if (key == "session_token") {
|
||||||
if (key == "session_token") {
|
|
||||||
*result = m_SessionToken;
|
*result = m_SessionToken;
|
||||||
return true;
|
return true;
|
||||||
}
|
} else if (key == "notification_id") {
|
||||||
if (key == "notification_id") {
|
DbReference ref = GetNotificationInsertID(value);
|
||||||
*result = static_cast<long>(GetNotificationInsertID(value));
|
|
||||||
|
if (!ref.IsValid())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
*result = static_cast<long>(ref);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -565,13 +565,16 @@ bool IdoPgsqlConnection::FieldToEscapedString(const String& key, const Value& va
|
||||||
if (key == "instance_id") {
|
if (key == "instance_id") {
|
||||||
*result = static_cast<long>(m_InstanceID);
|
*result = static_cast<long>(m_InstanceID);
|
||||||
return true;
|
return true;
|
||||||
}
|
} else if (key == "session_token") {
|
||||||
if (key == "session_token") {
|
|
||||||
*result = m_SessionToken;
|
*result = m_SessionToken;
|
||||||
return true;
|
return true;
|
||||||
}
|
} else if (key == "notification_id") {
|
||||||
if (key == "notification_id") {
|
DbReference ref = GetNotificationInsertID(value);
|
||||||
*result = static_cast<long>(GetNotificationInsertID(value));
|
|
||||||
|
if (!ref.IsValid())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
*result = static_cast<long>(ref);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue