]> granicus.if.org Git - postgis/commitdiff
Alter shp2pgsql in the -d case so that 'DELETE FROM' is used to clear the
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 1 Mar 2002 19:32:24 +0000 (19:32 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 1 Mar 2002 19:32:24 +0000 (19:32 +0000)
'GEOMETRY_COLUMNS' table during table drop instead of DropGeometryColumns.
Patch submitted by Steffen Macke <sdteffen@yahoo.com>.

git-svn-id: http://svn.osgeo.org/postgis/trunk@127 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql.c

index 9141eeb1755b7340c57414b0c0b286b8ae2a18a7..280e7a5d5e711911cac3bfa817069a7570ab945c 100644 (file)
@@ -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);