From 0a2ea1726bee9627a9c7d0cfce937059488fefd5 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 20 Nov 2003 18:01:26 +0000 Subject: [PATCH] patch from m.spring@gmx.de git-svn-id: http://svn.osgeo.org/postgis/trunk@380 b70326c6-7e19-0410-871a-916f4a2858ee --- loader/pgsql2shp.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/loader/pgsql2shp.c b/loader/pgsql2shp.c index 764509911..b684588f0 100644 --- a/loader/pgsql2shp.c +++ b/loader/pgsql2shp.c @@ -10,6 +10,9 @@ * ********************************************************************** * $Log$ + * Revision 1.28 2003/11/20 18:01:26 strk + * patch from m.spring@gmx.de + * * Revision 1.27 2003/11/20 15:27:20 strk * Removed some useless strdups. * Removed pgtype 22 (int2vector) from the list of integer DBF field types. @@ -1132,8 +1135,9 @@ addRecord(PGresult *res, int residx, int row) /* Integer attribute */ if (type_ary[j] == 1) { + int temp; val = (char *)PQgetvalue(res, residx, j); - int temp = atoi(val); + temp = atoi(val); #if VERBOSE > 1 fprintf(stdout, "i"); fflush(stdout); #endif @@ -1149,8 +1153,9 @@ fprintf(stdout, "i"); fflush(stdout); /* Double attribute */ if (type_ary[j] == 2) { + double temp; val = PQgetvalue(res, residx, j); - double temp = atof(val); + temp = atof(val); #if VERBOSE > 1 fprintf(stdout, "d"); fflush(stdout); #endif -- 2.50.1