From 56f4d2f2562efdcdc1fb6db1c83fa82a4a4f39e5 Mon Sep 17 00:00:00 2001 From: John Krauss Date: Wed, 11 May 2016 14:58:19 -0400 Subject: [PATCH] fix geoid hardcode --- src/pg/sql/41_observatory_augmentation.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pg/sql/41_observatory_augmentation.sql b/src/pg/sql/41_observatory_augmentation.sql index ef78434..f565b65 100644 --- a/src/pg/sql/41_observatory_augmentation.sql +++ b/src/pg/sql/41_observatory_augmentation.sql @@ -284,10 +284,11 @@ BEGIN query := query || format(' ]::numeric[] FROM observatory.%I - WHERE %I.geoid = %L + WHERE %I.%I = %L ', ((data_table_info)[1])->>'tablename', ((data_table_info)[1])->>'tablename', + geoid_colname, geoid );