[Pljava-dev] Patch for SQLOutput implementation

From: schabi at logix-tt(dot)com (Markus Schaber)
To:
Subject: [Pljava-dev] Patch for SQLOutput implementation
Date: 2006-09-22 16:07:45
Message-ID: 45140A51.8030605@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Hi,

Here's the patch attempt for the SQLOutput side.

First, it seems that the writeBytes() method was broken, it did write
nothing (not even the length count) for a zero-length array, which lead
to random garbage being read or worse on readBytes().

I also added some handle checks.

As I also adopted your coding style wr/t {}s, so I included the input
side again.

I've to quit now, my schedule is tight his afternoon, but I'll see what
I can do at the weekend and on Monday.

Regards,
Markus

--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SQLIO.diff
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060922/d8a733ab/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060922/d8a733ab/attachment.bin>

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Markus Schaber 2006-09-22 16:10:37 [Pljava-dev] readBytes() / writeBytes()
Previous Message Markus Schaber 2006-09-22 15:46:42 [Pljava-dev] Patch for SQLInput implementation