]> granicus.if.org Git - postgis/commitdiff
AddGeometryColumns allow dims = 0 (#1573)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 25 Apr 2012 20:04:41 +0000 (20:04 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 25 Apr 2012 20:04:41 +0000 (20:04 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9678 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis.sql.in.c

index 940e065c81ba21c31688b743ba8618196abd89e3..3596ec1e66d414dd661db82b44c54b74c1fffb6b 100644 (file)
@@ -1772,7 +1772,7 @@ BEGIN
 
 
        -- Verify dimension
-       IF ( (new_dim >4) OR (new_dim <0) ) THEN
+       IF ( (new_dim >4) OR (new_dim <2) ) THEN
                RAISE EXCEPTION 'invalid dimension';
                RETURN 'fail';
        END IF;