]> granicus.if.org Git - postgis/commitdiff
Clarify topology topoelement example that it is an example of WHAT NOT TO DO
authorRegina Obe <lr@pcorp.us>
Mon, 19 Dec 2011 03:44:45 +0000 (03:44 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 19 Dec 2011 03:44:45 +0000 (03:44 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8461 b70326c6-7e19-0410-871a-916f4a2858ee

doc/extras_topology.xml

index b1faadb4746fcb11807e706090e831d2dceae139..2fb1ec6b9299b3260aaaeb754f962178595719e2 100644 (file)
 -------
  {1,2}
                  </programlisting>
-                 <programlisting>SELECT ARRAY[1,2,3]::topology.topoelement;
+                 <programlisting>
+--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"
                  </programlisting>
             </refsection>