remove internal use of json

This commit is contained in:
John Krauss
2016-04-22 12:28:16 -04:00
parent 22549206c2
commit 830a65b93f

View File

@@ -467,7 +467,7 @@ RETURNS NUMERIC AS $$
DECLARE
standardized_name text;
measure_id text;
result JSON;
result NUMERIC;
BEGIN
standardized_name = cdb_observatory._OBS_StandardizeMeasureName(name);
@@ -505,9 +505,9 @@ BEGIN
-- TODO use a super-column for global pop
population_measure_id := '"us.census.acs".B01001001';
EXECUTE format('SELECT (cdb_observatory.OBS_GetMeasure(
EXECUTE format('SELECT cdb_observatory.OBS_GetMeasure(
%L, %L, %L, %L, %L
))->''value'' LIMIT 1', geom, population_measure_id, normalize, boundary_id, time_span)
) LIMIT 1', geom, population_measure_id, normalize, boundary_id, time_span)
INTO result;
return result;