--- /dev/null
+-- $Id$\r
+-- Test the populate_geometry_columns,DropGeometryTable etc --\r
+DELETE FROM spatial_ref_sys WHERE srid = 4326;\r
+INSERT INTO spatial_ref_sys ( srid, proj4text ) VALUES( 4326, '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs');\r
+CREATE TABLE test_pt(gid SERIAL PRIMARY KEY, geom geometry);\r
+INSERT INTO test_pt(geom) VALUES(ST_GeomFromEWKT('SRID=4326;POINT M(1 2 3)'));\r
+SELECT populate_geometry_columns('test_pt'::regclass);\r
+SELECT 'The result: ' || DropGeometryTable('test_pt');\r
--- /dev/null
+NOTICE: CREATE TABLE will create implicit sequence "test_pt_gid_seq" for serial column "test_pt.gid"
+NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "test_pt_pkey" for table "test_pt"
+1
+The result: public.test_pt dropped.