cast return value of obs_getboundaryid to text

This commit is contained in:
Andy Eschbacher
2016-05-13 06:51:13 -04:00
parent 8696037dd6
commit 2c10e75af6
2 changed files with 12 additions and 6 deletions

View File

@@ -161,9 +161,9 @@ BEGIN
RAISE NOTICE 'target_table: %, geoid_colname: %', target_table, geoid_colname;
-- return name of geometry id column
-- return geometry id column value
EXECUTE format(
'SELECT %I
'SELECT %I::text
FROM observatory.%I
WHERE ST_Intersects($1, the_geom)
LIMIT 1', geoid_colname, target_table)