From 5abb354d7ddc4d05934bbe5e80ff66ccd3f0f79f Mon Sep 17 00:00:00 2001 From: John Krauss Date: Mon, 11 Apr 2016 18:21:08 -0400 Subject: [PATCH] bugfix --- src/pg/sql/41_observatory_augmentation.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pg/sql/41_observatory_augmentation.sql b/src/pg/sql/41_observatory_augmentation.sql index bbd0d02..cc00f66 100644 --- a/src/pg/sql/41_observatory_augmentation.sql +++ b/src/pg/sql/41_observatory_augmentation.sql @@ -127,8 +127,8 @@ DECLARE q = 'WITH a As ( SELECT - colnames As names, - colvalues As vals + dimension As names, + dimension_value As vals FROM OBS_GetCensus($1,$2) )' || OBS_BuildSnapshotQuery(target_cols) || @@ -181,7 +181,7 @@ CREATE OR REPLACE FUNCTION OBS_Get( RETURNS TABLE(names text[], vals NUMERIC[]) AS $$ DECLARE - results numeric[]; + results numeric[]; geom_table_name text; names text[]; query text;