[postgis-devel] Little error in pgsql2shp (version 0.7.3)

Silke Reimer silke at intevation.de
Fri Nov 1 04:19:50 PST 2002


Hallo!

I found a little error in pgsql2shp. The problem was, that the array
conn_string was printed to stdout although it was empty at that
moment. Therefor using pgsql2shp always led to binary code on
stdout. The solution is to remove one line in pgsql2shp.c (probably
included for debugging purposes). You find the patch attached to
this email.

Greetings,
	Silke

-- 
Silke Reimer

Intevation GmbH                      http://intevation.de/
FreeGIS                                http://freegis.org/

-------------- next part --------------
--- pgsql2shp.c.orig	Fri Nov  1 13:09:10 2002
+++ pgsql2shp.c	Fri Nov  1 13:06:40 2002
@@ -160,7 +160,7 @@
 		}
 	}
 
- printf(conn_string);
+/* printf(conn_string);*/
 
 	/* make a connection to the specified database */
 	sprintf(conn_string,"host=%s %s port=%s dbname=%s",pghost,pgoptions,pgport,dbName);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20021101/b0f14bb0/attachment.sig>


More information about the postgis-devel mailing list