From ccf61c35833d628c3dc9bd23eadd36b34e7b6491 Mon Sep 17 00:00:00 2001 From: John Krauss Date: Wed, 11 May 2016 17:59:58 -0400 Subject: [PATCH] array typing issues --- src/pg/sql/40_observatory_utility.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pg/sql/40_observatory_utility.sql b/src/pg/sql/40_observatory_utility.sql index 42fb886..f132d85 100644 --- a/src/pg/sql/40_observatory_utility.sql +++ b/src/pg/sql/40_observatory_utility.sql @@ -71,9 +71,9 @@ BEGIN AND CASE WHEN $1 IS NULL THEN True ELSE $1 = geom_c.id END ORDER BY geom_c.weight DESC, data_t.timespan DESC - LIMIT 1; + LIMIT 1 ' INTO timespan, geometry_id - USING geometry_id, column_ids[1], timespan; + USING geometry_id, (column_ids)[1], timespan; END IF; RETURN QUERY