]> granicus.if.org Git - postgis/commitdiff
Lifted AddGeometryColumns result message, including output from fix_geometry_columns
authorSandro Santilli <strk@keybit.net>
Fri, 4 Jun 2004 08:31:30 +0000 (08:31 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 4 Jun 2004 08:31:30 +0000 (08:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@582 b70326c6-7e19-0410-871a-916f4a2858ee

postgis.sql.in

index d7d337b0e46b39908eabb3f0995e54f83cb35b69..afbb35b7cc221cd7aaadce62cc4ef523c263482a 100644 (file)
@@ -2306,6 +2306,7 @@ DECLARE
        schema_ok bool;
        real_schema name;
 #endif
+       fixgeomres text;
 
 BEGIN
 
@@ -2414,16 +2415,16 @@ BEGIN
                quote_ident(column_name) || '') is null)'';
        END IF;
 
-       EXECUTE ''select fix_geometry_columns()'';
+       SELECT fix_geometry_columns() INTO fixgeomres;
 
-       return ''Geometry column '' || column_name || '' added to table ''
+       return 
 #if USE_VERSION >= 73
-               || real_schema || ''.'' || table_name
-#else
-               || table_name
+               real_schema || ''.'' || 
 #endif
-               || '' WITH a SRID of '' || new_srid ||
-               '' and type '' || new_type;
+               table_name || ''.'' || column_name ||
+               '' SRID:'' || new_srid ||
+               '' TYPE:'' || new_type || ''\n '' ||
+               ''geometry_column '' || fixgeomres;
 END;
 ' LANGUAGE 'plpgsql' WITH (isstrict);