From 0237bbee4ae7bfd035e41f63d3314cdd1eabe865 Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Mon, 14 Dec 2009 01:23:14 +0000 Subject: [PATCH] Fix missing COPY terminator from shp2pgsql command line component. git-svn-id: http://svn.osgeo.org/postgis/trunk@4997 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/shp2pgsql-cli.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.50.1