diff --git a/src/pg/sql/41_observatory_augmentation.sql b/src/pg/sql/41_observatory_augmentation.sql index 1c64f20..ed8a2e3 100644 --- a/src/pg/sql/41_observatory_augmentation.sql +++ b/src/pg/sql/41_observatory_augmentation.sql @@ -372,7 +372,7 @@ BEGIN ORDER BY geom_weight DESC, numer_timespan DESC LIMIT 1 $query$ - INTO numer_colname, numer_geomref_colname, numer_tablename, + INTO numer_aggregate, numer_colname, numer_geomref_colname, numer_tablename, denom_colname, denom_geomref_colname, denom_tablename, geom_colname, geom_geomref_colname, geom_tablename USING COALESCE(boundary_id, ''), measure_id, COALESCE(time_span, '');