]> granicus.if.org Git - postgis/commitdiff
Fix bug in append mode that filled values into nonexistant gid column.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 20 May 2004 19:21:08 +0000 (19:21 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 20 May 2004 19:21:08 +0000 (19:21 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@555 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql.c

index 17f291e1b9dbccb9e0134e369c7c1a3ca6522c17..df4d4683b02f06aabf618dba98addd975d4dfea0 100644 (file)
@@ -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);