From: Regina Obe Date: Mon, 19 Dec 2011 03:44:45 +0000 (+0000) Subject: Clarify topology topoelement example that it is an example of WHAT NOT TO DO X-Git-Tag: 2.0.0alpha1~413 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d9050baaf479c9046ba1e687a3f4b17bcf66b56;p=postgis Clarify topology topoelement example that it is an example of WHAT NOT TO DO git-svn-id: http://svn.osgeo.org/postgis/trunk@8461 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/extras_topology.xml b/doc/extras_topology.xml index b1faadb47..2fb1ec6b9 100644 --- a/doc/extras_topology.xml +++ b/doc/extras_topology.xml @@ -145,7 +145,10 @@ ------- {1,2} - SELECT ARRAY[1,2,3]::topology.topoelement; + +--Example of what happens when you try to case a 3 element array to topoelement +-- NOTE: topoement has to be a 2 element array so fails dimension check +SELECT ARRAY[1,2,3]::topology.topoelement; ERROR: value for domain topology.topoelement violates check constraint "dimensions"