[postgis-users] [PATCH] Fix pgsql2shp for timestamps

strk strk at keybit.net
Wed Jun 16 13:11:09 PDT 2004


On Wed, Jun 16, 2004 at 06:14:55PM +0200, Steffen Macke wrote:
> > I've committed both your patch and a fix to getMaxFieldSize for
> > schema support. Still please let me know if the octet_length()
> > function gives wrong result for timestamp or any other field type.
> 
> Thanks!
> 
> getMaxFieldSize() is not called because size is set to 8 in
> the timestamp case (at line 2453 of pgsql2shp.c):
> 
> size = atoi(PQgetvalue(res, i, 2));

Oh - I see - timestamp is not a varlena, so needs special handling.
I wonder how many other types miss this special threatment...

--strk;


> 
> Steffen
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list