fix ambiguous colname for categories in points too

This commit is contained in:
John Krauss
2016-07-12 16:10:00 -04:00
parent 81176d1df2
commit 6a39bedee7

View File

@@ -460,7 +460,7 @@ BEGIN
IF ST_GeometryType(geom) = 'ST_Point' THEN
EXECUTE format(
'SELECT %I
'SELECT data.%I
FROM observatory.%I data, observatory.%I geom
WHERE data.%I = geom.%I
AND ST_WITHIN(%L, geom.%I) ',