-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--
-- PostGIS - Spatial Types for PostgreSQL
--- http://postgis.refractions.net
+-- http://postgis.net
--
--- Copyright (C) 2010, 2011, 2012 Sandro Santilli <strk@keybit.net>
+-- Copyright (C) 2010, 2011, 2012, 2013 Sandro Santilli <strk@keybit.net>
-- Copyright (C) 2005 Refractions Research Inc.
--
-- This is free software; you can redistribute and/or modify it under
'SQL/MM Spatial exception - null argument';
END IF;
+ --
+ -- Atopology must be registered
+ --
+ IF NOT EXISTS(SELECT name FROM topology WHERE topology.name = atopology) THEN
+ RAISE EXCEPTION
+ 'SQL/MM Spatial exception - invalid topology name';
+ END IF;
--
-- Apoint must be a point
--
ERROR: SQL/MM Spatial exception - null argument
ERROR: SQL/MM Spatial exception - null argument
ERROR: SQL/MM Spatial exception - invalid topology name
-ERROR: zero-length delimited identifier at or near """" at character 21
+ERROR: SQL/MM Spatial exception - invalid topology name
ERROR: SQL/MM Spatial exception - not within face
ERROR: SQL/MM Spatial exception - not within face
ERROR: SQL/MM Spatial exception - not within face