Fix for the_geom does not exist

When creating triggers, expectation is to have the columns the_geom and
the_geom_webmercator even if the source table does not have any geometry
columns. Populate it in the rewrite with NULL values and right types.
This commit is contained in:
Rafa de la Torre 2015-08-12 17:34:37 +02:00
parent 1a1f45cdad
commit 8c41203db6

View File

@ -1202,7 +1202,8 @@ BEGIN
-- their tables to invalidate the SQL API
-- cache on update/insert/delete.
geom_column_source := '';
sql := sql || ',NULL::geometry(Geometry,4326) AS ' || const.geomcol;
sql := sql || ',NULL::geometry(Geometry,3857) AS ' || const.mercgeomcol;
ELSE
-- table_srid = _CDB_Geometry_SRID(reloid, rec.attname);