Bug in setUnicodeStream - Mailing list pgsql-jdbc

From Chris Smith
Subject Bug in setUnicodeStream
Date
Msg-id 01a201c2cd33$6ba88e70$6700000a@KYA
Whole thread Raw
List pgsql-jdbc
I'm working more on my streaming patch that I posted earlier.

I noticed that setUnicodeStream is specified to take a parameter that
contains the number of bytes to read from the stream... but the
implementation instead treats the parameter as the number of characters to
be read from the stream.  This could cause the stream to get over-read.

I'll fix this in my upcoming patch, since I'm rewriting this piece of code
anyway... but if you don't want the streaming patch I'm working on, you'll
need to deal with this some other way.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation


pgsql-jdbc by date:

Previous
From: "Andy Kriger"
Date:
Subject: Re: Netbeans - JDBC Driver Class
Next
From: shk@linuxbr.com.br
Date:
Subject: Re: possible character accent bug on pgjdbc73