]> granicus.if.org Git - postgis/commitdiff
Fix missing COPY terminator from shp2pgsql command line component.
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Mon, 14 Dec 2009 01:23:14 +0000 (01:23 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Mon, 14 Dec 2009 01:23:14 +0000 (01:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4997 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-cli.c

index f47373b251357f50c263028e8116f024fae9d548..f7daf11e890fd46ff25f173f737f722bbd7ce90e 100644 (file)
@@ -285,6 +285,10 @@ main (int argc, char **argv)
                }
        }
 
+       /* If in COPY mode, terminate the COPY statement */
+       if (state->config->dump_format)
+               printf("\\.\n");
+
        /* Print the footer to stdout */
        ret = ShpLoaderGetSQLFooter(state, &footer);
        if (ret != SHPLOADEROK)