From: Mark Cave-Ayland Date: Mon, 14 Dec 2009 01:23:14 +0000 (+0000) Subject: Fix missing COPY terminator from shp2pgsql command line component. X-Git-Tag: 1.5.0b1~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0237bbee4ae7bfd035e41f63d3314cdd1eabe865;p=postgis Fix missing COPY terminator from shp2pgsql command line component. git-svn-id: http://svn.osgeo.org/postgis/trunk@4997 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql-cli.c b/loader/shp2pgsql-cli.c index f47373b25..f7daf11e8 100644 --- a/loader/shp2pgsql-cli.c +++ b/loader/shp2pgsql-cli.c @@ -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)