From 12e3d18993e30aaa3a49d160054d228adc977238 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 1 Mar 2002 19:32:24 +0000 Subject: [PATCH] Alter shp2pgsql in the -d case so that 'DELETE FROM' is used to clear the 'GEOMETRY_COLUMNS' table during table drop instead of DropGeometryColumns. Patch submitted by Steffen Macke . git-svn-id: http://svn.osgeo.org/postgis/trunk@127 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/shp2pgsql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/shp2pgsql.c b/loader/shp2pgsql.c index 9141eeb17..280e7a5d5 100644 --- a/loader/shp2pgsql.c +++ b/loader/shp2pgsql.c @@ -522,7 +522,7 @@ int main (int ARGC, char **ARGV){ if(opt == 'd'){ //-------------------------Drop the table-------------------------------- //drop the table given - printf("select DropGeometryColumn('%s','%s','the_geom');",database,table); + printf("delete from geometry_columns where f_table_name = '%s';\n",table); printf("\ndrop table %s;\n",table); -- 2.49.0