mirror of https://github.com/Icinga/icinga2.git
parent
6dc88e770b
commit
1b5f4dcde7
|
@ -280,8 +280,23 @@ void Query::PrintResultSet(std::ostream& fp, const std::vector<String>& columns,
|
|||
else
|
||||
fp << ";";
|
||||
|
||||
if (value.IsObjectType<Array>()) {
|
||||
bool first_inner = true;
|
||||
Array::Ptr arr = static_cast<Array::Ptr>(value);
|
||||
|
||||
ObjectLock rlock(arr);
|
||||
BOOST_FOREACH(const Value& arr_val, arr) {
|
||||
if (first_inner)
|
||||
first_inner = false;
|
||||
else
|
||||
fp << ",";
|
||||
|
||||
fp << Convert::ToString(arr_val);
|
||||
}
|
||||
} else {
|
||||
fp << Convert::ToString(value);
|
||||
}
|
||||
}
|
||||
|
||||
fp << "\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue