Commit 646034eb authored by Daniel Eggert's avatar Daniel Eggert
Browse files

fixed sql typo

parent 818172ee
......@@ -92,7 +92,7 @@ public class DbUtils {
dstDb.commit();
PreparedStatement updateScene = dstDb.prepareStatement("update scenes set proc_level='DOWNLOADED'::proc_level, filename=? where id in (select id from scenes where entityid=? and datasetid=? limit 1);");
PreparedStatement updateSentinelScene = dstDb.prepareStatement("update scenes set proc_level='DOWNLOADED'::proc_level, entityid=? where id in (select id form scenes where filename=? and datasetid=? limit 1);");
PreparedStatement updateSentinelScene = dstDb.prepareStatement("update scenes set proc_level='DOWNLOADED'::proc_level, entityid=? where id in (select id from scenes where filename=? and datasetid=? limit 1);");
// get list of downloaded scenes from src database
ResultSet rs = srcDb.prepareStatement("select filename, entityid, datasetid from scenes where proc_level='DOWNLOADED'::proc_level;").executeQuery();
......
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