From defb838d4648cf09b18b29928f3fefff3b42da78 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Thu, 20 May 2004 19:21:08 +0000 Subject: [PATCH] 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 --- loader/shp2pgsql.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.50.1