gavin wrote:
Ummmmm ... its certainly not intended ...
Which drivers did you try?
Mysql: MySQL 3.0.9 stable
MSQLServer: JConnect 3.30
Oracle: ojdbc14.jar
Quote:
Have a look at what needs to be changed in TextType and submit a patch to JIRA.
Changes are quite straightforward - you were just adding your byte buffer into the string without taking into account the amount of data you read ;-)
I have corrected this code and it works pretty well. I'll submit the thing to Jira as you propose.
When reading the TextType code, I notice that you were using deprecated java.io classes (deprecated since JDK 1.1) - ie. StringBufferInputStream and others.
In fact, we should now be using java.io.Reader's to properly convert from bytes to char...
Doing so will result in Hibernate not working on JDK 1.0 - is it a problem ?