AddGeometryColumn column identifier case respect fix as suggested by Bernhard Herzog
authorSandro Santilli <strk@keybit.net>
Wed, 12 Nov 2003 20:55:18 +0000 (20:55 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 12 Nov 2003 20:55:18 +0000 (20:55 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@358 b70326c6-7e19-0410-871a-916f4a2858ee

Attic/postgis_sql_common.sql.in

index f8b37370b5216154f09df30a837d5e937dc4a904..6520c11b741f917048ddba7219ebb7e4bd91389d 100644 (file)
@@ -12,6 +12,9 @@
 --  
 -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 -- $Log$
+-- Revision 1.20  2003/11/12 20:55:18  strk
+-- AddGeometryColumn column identifier case respect fix as suggested by Bernhard Herzog
+--
 -- Revision 1.19  2003/11/05 18:26:54  strk
 -- Added fast collect() and geomunion() aggregates implementations
 --
@@ -301,7 +304,7 @@ BEGIN
                ''") = '' || new_srid || '')'' ;
 
        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)'';
+               EXECUTE ''ALTER TABLE "'' ||table_name||''" ADD CHECK ( geometrytype("''||column_name||''")=''|| quote_literal(new_type)||'' OR ("'' ||column_name ||''") is null)'';
        END IF;
 
        return ''Geometry column '' || column_name || '' added to table ''