Fix not valid column in exploration functions
This commit is contained in:
parent
350b1716e0
commit
ed3b7de9e0
@ -383,7 +383,7 @@ BEGIN
|
|||||||
CASE WHEN $1 IS NOT NULL AND $1 != '' THEN
|
CASE WHEN $1 IS NOT NULL AND $1 != '' THEN
|
||||||
EXISTS (SELECT 1 FROM observatory.obs_meta_geom_numer_timespan onu WHERE o.geom_id = onu.geom_id AND onu.numer_id = $1 AND ($3 = ANY(onu.timespans) OR $3 IN (select(unnest(o.timespans)))))
|
EXISTS (SELECT 1 FROM observatory.obs_meta_geom_numer_timespan onu WHERE o.geom_id = onu.geom_id AND onu.numer_id = $1 AND ($3 = ANY(onu.timespans) OR $3 IN (select(unnest(o.timespans)))))
|
||||||
ELSE
|
ELSE
|
||||||
EXISTS (SELECT 1 FROM observatory.obs_meta_geom_numer_timespan onu WHERE o.geom_id = onu.geom_id AND ($3 = ANY(onu.geom_timespans) OR $3 IN (select(unnest(o.geom_timespans)))))
|
EXISTS (SELECT 1 FROM observatory.obs_meta_geom_numer_timespan onu WHERE o.geom_id = onu.geom_id AND ($3 = ANY(onu.geom_timespans) OR $3 IN (select(unnest(o.timespans)))))
|
||||||
END
|
END
|
||||||
ELSE
|
ELSE
|
||||||
false
|
false
|
||||||
|
Loading…
Reference in New Issue
Block a user