fix bug with table alias

This commit is contained in:
John Krauss 2016-05-11 17:57:46 -04:00
parent b2b34bfe05
commit d1c2598167

View File

@ -79,7 +79,7 @@ BEGIN
RETURN QUERY RETURN QUERY
EXECUTE ' EXECUTE '
WITH geomref AS ( WITH geomref AS (
SELECT t.table_id id SELECT ct.table_id id
FROM observatory.OBS_column_to_column c2c, FROM observatory.OBS_column_to_column c2c,
observatory.OBS_column_table ct observatory.OBS_column_table ct
WHERE c2c.reltype = ''geom_ref'' WHERE c2c.reltype = ''geom_ref''