*result = static_cast<long>(m_InstanceID);
return true;
}
+ if (key == "notification_id") {
+ *result = static_cast<long>(m_LastNotificationID);
+ return true;
+ }
Value rawvalue = DbValue::ExtractValue(value);
if (type == DbQueryInsert && query.ConfigUpdate)
SetInsertID(query.Object, GetLastInsertID());
}
+ if (type == DbQueryInsert && query.Table == "notifications") { // FIXME remove hardcoded table name
+ m_LastNotificationID = GetLastInsertID();
+ Log(LogWarning, "db_ido", "saving contactnotification notification_id=" + Convert::ToString(static_cast<long>(m_LastNotificationID)));
+ }
}
void IdoMysqlConnection::CleanUpExecuteQuery(const String& table, const String& time_key, double time_value)