Test invalid calls to topogeo_addpoint

git-svn-id: http://svn.osgeo.org/postgis/trunk@8657 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2012-01-03 20:24:29 +00:00
parent 1d655f2a29
commit e6dbd1ea0e
2 changed files with 6 additions and 0 deletions

View file

@ -3,6 +3,10 @@ set client_min_messages to ERROR;
\i load_topology.sql
-- Invalid calls
SELECT 'invalid', TopoGeo_addPoint('city_data', 'LINESTRING(36 26, 38 30)');
SELECT 'invalid', TopoGeo_addPoint('city_data', 'MULTIPOINT((36 26))');
-- Save max node id
select 'node'::text as what, max(node_id) INTO city_data.limits FROM city_data.node;

View file

@ -4,6 +4,8 @@ t
22
26
COMMIT
ERROR: Invalid geometry type (LINESTRING) passed to TopoGeo_AddPoint, expected POINT
ERROR: Invalid geometry type (MULTIPOINT) passed to TopoGeo_AddPoint, expected POINT
iso_uni|23
iso_f3|24
iso_ex|23