From: Paul Ramsey Date: Thu, 20 May 2004 19:21:08 +0000 (+0000) Subject: Fix bug in append mode that filled values into nonexistant gid column. X-Git-Tag: pgis_0_8_2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=defb838d4648cf09b18b29928f3fefff3b42da78;p=postgis Fix bug in append mode that filled values into nonexistant gid column. git-svn-id: http://svn.osgeo.org/postgis/trunk@555 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql.c b/loader/shp2pgsql.c index 17f291e1b..df4d4683b 100644 --- a/loader/shp2pgsql.c +++ b/loader/shp2pgsql.c @@ -12,6 +12,9 @@ * ********************************************************************** * $Log$ + * Revision 1.57 2004/05/20 19:21:08 pramsey + * Fix bug in append mode that filled values into nonexistant gid column. + * * Revision 1.56 2004/05/13 09:40:33 strk * Totally reworked code to have a main loop for shapefile objects. * Much more readable, I belive. @@ -889,7 +892,10 @@ int main (int ARGC, char **ARGV){ } else { - printf("%d\t", j); + if(opt != 'a') + { + printf("%d\t", j); + } } Insert_attributes(hDBFHandle,j);