removed hardcoded reference

This commit is contained in:
Antonis Lempesis 2021-11-01 15:42:29 +02:00 committed by Claudio Atzori
parent cece432adc
commit b97b78f874
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ FROM ${stats_db_name}.project_tmp p
UPDATE ${stats_db_name}.publication_tmp UPDATE ${stats_db_name}.publication_tmp
SET delayed = 'yes' SET delayed = 'yes'
WHERE publication_tmp.id IN (SELECT distinct r.id WHERE publication_tmp.id IN (SELECT distinct r.id
FROM stats_wf_db_obs.result r, FROM ${stats_db_name}.result r,
${stats_db_name}.project_results pr, ${stats_db_name}.project_results pr,
${stats_db_name}.project_tmp p ${stats_db_name}.project_tmp p
WHERE r.id = pr.result WHERE r.id = pr.result
@ -75,7 +75,7 @@ WHERE publication_tmp.id IN (SELECT distinct r.id
UPDATE ${stats_db_name}.dataset_tmp UPDATE ${stats_db_name}.dataset_tmp
SET delayed = 'yes' SET delayed = 'yes'
WHERE dataset_tmp.id IN (SELECT distinct r.id WHERE dataset_tmp.id IN (SELECT distinct r.id
FROM stats_wf_db_obs.result r, FROM ${stats_db_name}.result r,
${stats_db_name}.project_results pr, ${stats_db_name}.project_results pr,
${stats_db_name}.project_tmp p ${stats_db_name}.project_tmp p
WHERE r.id = pr.result WHERE r.id = pr.result