From: Sandro Santilli Date: Fri, 4 Jun 2004 08:31:30 +0000 (+0000) Subject: Lifted AddGeometryColumns result message, including output from fix_geometry_columns X-Git-Tag: pgis_0_9_1~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92bc86a7805a2f3f72f2337d20214cd761c96a93;p=postgis Lifted AddGeometryColumns result message, including output from fix_geometry_columns git-svn-id: http://svn.osgeo.org/postgis/trunk@582 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis.sql.in b/postgis.sql.in index d7d337b0e..afbb35b7c 100644 --- a/postgis.sql.in +++ b/postgis.sql.in @@ -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);