[prev in list] [next in list] [prev in thread] [next in thread]
List: postgis-users
Subject: Re: [Fwd: [SOLVED] Re: [postgis-users] JDBC-Postgis bug]
From: David Blasby <dblasby () refractions ! net>
Date: 2003-07-08 18:42:53
Message-ID: 3F0B10AD.90500 () refractions ! net
[Download RAW message or body]
David Garnier wrote:
> Hello,
> Is this bug fixed in the CVS or are you still looking into it?
>
> I'm hoping to release WKB4J 1.0 very soon and this is really a
> showstopper for me.
A modified version of your patch is in CVS now. The problem is that I
had originally thought that postgresql text types were null-terminated.
Unfortunately, they are sometimes null terminated, and sometimes not...
I thought I had fixed them all, but this one got through.
Sorry for the delay,
dave
ps. more details:
The postgresql text object looks like this:
<4 byte int - total size of this object><actual text>
So, for example 'XDR' looks like this:
00 00 00 07 58 44 52 <junk>
- - - - X D R ...
So, using strcmp() will fail because there is not necessarily a
null-termination after the 'XDR' characters. C Strings require
a null termination.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic