]> granicus.if.org Git - postgis/commitdiff
added a warning to the shape dumper when there are no fields in the database.
authorJeff Lounsbury <jeffloun@refractions.net>
Thu, 14 Mar 2002 19:35:19 +0000 (19:35 +0000)
committerJeff Lounsbury <jeffloun@refractions.net>
Thu, 14 Mar 2002 19:35:19 +0000 (19:35 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@128 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp.c

index 596f758ab200703a25aaaf78c99fb026c2c4e27d..8e47889d20b5b5ef72c5d64e01cee5641d317241 100644 (file)
@@ -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);