This commit is contained in:
John Krauss 2016-04-11 18:21:08 -04:00
parent 5d9571a954
commit 5abb354d7d

View File

@ -127,8 +127,8 @@ DECLARE
q = 'WITH a As ( q = 'WITH a As (
SELECT SELECT
colnames As names, dimension As names,
colvalues As vals dimension_value As vals
FROM OBS_GetCensus($1,$2) FROM OBS_GetCensus($1,$2)
)' || )' ||
OBS_BuildSnapshotQuery(target_cols) || OBS_BuildSnapshotQuery(target_cols) ||
@ -181,7 +181,7 @@ CREATE OR REPLACE FUNCTION OBS_Get(
RETURNS TABLE(names text[], vals NUMERIC[]) RETURNS TABLE(names text[], vals NUMERIC[])
AS $$ AS $$
DECLARE DECLARE
results numeric[]; results numeric[];
geom_table_name text; geom_table_name text;
names text[]; names text[];
query text; query text;