From 39c601c4140bd5f3f22b7967fe2946f7759eed23 Mon Sep 17 00:00:00 2001 From: Jeff Lounsbury Date: Thu, 14 Mar 2002 19:35:19 +0000 Subject: [PATCH] added a warning to the shape dumper when there are no fields in the database. git-svn-id: http://svn.osgeo.org/postgis/trunk@128 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/pgsql2shp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/loader/pgsql2shp.c b/loader/pgsql2shp.c index 596f758ab..8e47889d2 100644 --- a/loader/pgsql2shp.c +++ b/loader/pgsql2shp.c @@ -329,6 +329,10 @@ printf(conn_string); } printf("DBF tuple - %d added\n",i-1); + if(flds==0){ + printf("WARNING: There were no fields in the database. The DBF was not created properly, please add a field to the database and try again."); + } + DBFClose(dbf); -- 2.40.0