if(!bdb_sql_query(query.c_str(), db_list_handler, jobids)) {
goto bail_out;
}
+
+ /* If we call the function with one jobid, we can take it
+ * if the result is also one jobid. It is useful when
+ * we deal with multiple VF or copies having the same JobTDate.
+ * TODO: Adjust if we have a list and we don't have the id resquested
+ */
+ if (is_a_number(jobids->list)) {
+ jobids->reset();
+ jobids->add(edit_uint64(from_jobid, esc));
+ }
+
Dmsg1(1, "db_get_accurate_jobids=%s\n", jobids->list);
ret = true;