Commit 27d2d416 authored by Robert Butora's avatar Robert Butora
Browse files

vlkb-obscore: fixes handling of empty surveys::velocity_fits_units

parent 98f3f154
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ string to_sql_values(survey surv)
      + to_string(surv.rest_frequency_Hz) + ", "
      + to_sqlstring2("") + ", "
      // FIXME NOT USED + to_sqlstring2(surv.restf_fits_unit) + ", "
      + to_sqlstring2(to_string(surv.velocity_fits_unit)) + ", "
      + (surv.velocity_fits_unit == velocity_unit::NONE ? "NULL" : to_sqlstring2(to_string(surv.velocity_fits_unit))) + ", "
      + to_sqlstring2(surv.storage_path) + ", "
      + to_sqlstring2(surv.file_filter) + ", "
      + to_sqlstring2(surv.description) + ", "