Commit 4f4b7861 authored by Daniel Eggert's avatar Daniel Eggert
Browse files

fixed missing distribution index value storage

parent 77d85a67
......@@ -1481,6 +1481,7 @@ public class SceneDatabase {
}
pst.setString(++idx, job.mode.toString());
pst.setInt(++idx, job.distributionIndex);
ResultSet rs = pst.executeQuery();
......
......@@ -47,7 +47,7 @@ public interface SqlStatements {
public static final String GET_PROC_LEVEL_FOR_JOB_SCENES_QUERY = "select scenes.datasetid, scenes.id, scenes.proc_level from scenes, jobs where jobs.id=? AND scenes.id = ANY(jobs.sceneids);";
public static final String CREATE_SCENE_PROCESSING_JOB = "INSERT INTO jobs (creationtime, timerange_start, timerange_end, bounds, sceneids, virtualsensorid, datasetid_spatial_ref, ref_job_id, non_ref_datasetids, max_cloudcover, season_code, path_analysis_script, analysis_parameter, statistics, job_mode) VALUES (CURRENT_TIMESTAMP, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?::job_mode) RETURNING id;";
public static final String CREATE_SCENE_PROCESSING_JOB = "INSERT INTO jobs (creationtime, timerange_start, timerange_end, bounds, sceneids, virtualsensorid, datasetid_spatial_ref, ref_job_id, non_ref_datasetids, max_cloudcover, season_code, path_analysis_script, analysis_parameter, statistics, job_mode, distribution_index) VALUES (CURRENT_TIMESTAMP, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?::job_mode, ?) RETURNING id;";
public static final String CREATE_VIRTUAL_SENSOR = "INSERT INTO virtual_sensors (name, spatial_resolution, spectral_characteristics_datasetid, wavelengths_pos, band_width) VALUES (?, ?, ?, ?, ?) RETURNING id;";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment