Skip to content
Snippets Groups Projects
Commit 27d2d416 authored by Robert Butora's avatar Robert Butora
Browse files

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

parent 98f3f154
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ string to_sql_values(survey surv) ...@@ -75,7 +75,7 @@ string to_sql_values(survey surv)
+ to_string(surv.rest_frequency_Hz) + ", " + to_string(surv.rest_frequency_Hz) + ", "
+ to_sqlstring2("") + ", " + to_sqlstring2("") + ", "
// FIXME NOT USED + to_sqlstring2(surv.restf_fits_unit) + ", " // 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.storage_path) + ", "
+ to_sqlstring2(surv.file_filter) + ", " + to_sqlstring2(surv.file_filter) + ", "
+ to_sqlstring2(surv.description) + ", " + to_sqlstring2(surv.description) + ", "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment