fix signature bugs

This commit is contained in:
John Krauss 2016-04-25 16:39:23 -04:00
parent 10fc4f56f0
commit 647ebf9255

View File

@ -553,6 +553,10 @@ AS $$
DECLARE
result NUMERIC;
measure_ids NUMERIC[];
denominator_id TEXT;
names TEXT[];
vals TEXT[];
denominator_id TEXT;
BEGIN
IF boundary_id IS NULL THEN
@ -580,7 +584,7 @@ BEGIN
END IF;
EXECUTE '
SELECT names, vals FROM cdb_observatory._OBS_Get($1, $2, $3, $4) LIMIT 1
SELECT cdb_observatory._OBS_Get($1, $2, $3, $4)->>''value''::TEXT LIMIT 1
'
INTO names, vals
USING geom, measure_ids, time_span, boundary_id;