]> granicus.if.org Git - postgis/commitdiff
changed 'geometry' to 'GEOMETRY' two places in the AddGeometryColumn sql code.
authorChris Hodgson <chodgson@refractions.net>
Thu, 6 Mar 2003 18:29:35 +0000 (18:29 +0000)
committerChris Hodgson <chodgson@refractions.net>
Thu, 6 Mar 2003 18:29:35 +0000 (18:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@246 b70326c6-7e19-0410-871a-916f4a2858ee

Attic/postgis_sql_common.sql.in

index 817fcaab24be563001383c38b42a439e8d68e447..796dc5da68c8b1a8a66049da1d16c319f1070d51 100644 (file)
@@ -178,7 +178,7 @@ DECLARE
 
 BEGIN
 
-       IF (not( (new_type =''geometry'') or (new_type =''GEOMETRYCOLLECTION'') or (new_type =''POINT'')
+       IF (not( (new_type =''GEOMETRY'') or (new_type =''GEOMETRYCOLLECTION'') or (new_type =''POINT'')
                 or (new_type =''MULTIPOINT'') or       (new_type =''POLYGON'') or (new_type =''MULTIPOLYGON'') 
                 or (new_type =''LINESTRING'') or (new_type =''MULTILINESTRING'')) ) THEN               
                RAISE EXCEPTION ''Invalid type name - valid ones are: GEOMETRY, GEOMETRYCOLLECTION,POINT,MULTIPOINT,POLYGON,MULTIPOLYGON,LINESTRING, or MULTILINESTRING '';
@@ -213,7 +213,7 @@ BEGIN
        EXECUTE ''ALTER TABLE "'' ||table_name||''" ADD CHECK (SRID("'' || column_name ||
                ''") = '' || new_srid || '')'' ;
 
-       IF (not(new_type = ''geometry'')) THEN
+       IF (not(new_type = ''GEOMETRY'')) THEN
                EXECUTE ''ALTER TABLE "'' ||table_name||''" ADD CHECK ( geometrytype("''||column_name||''")=''|| quote_literal(new_type)||'' OR ('' ||column_name ||'') is null)'';
        END IF;