This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Serious JdbcOdbc bridge driver regression bug Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Serious JdbcOdbc bridge driver regression bug" Watch "Serious JdbcOdbc bridge driver regression bug" New topic
Author

Serious JdbcOdbc bridge driver regression bug

Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
As Mustang (Java 1.6) is in beta several people have now reported a rather serious bug in the JdbcOdbcDriver that ships with it. The bug is essentially that ALL varchar type fields are being padded with nulls by the bridge driver to fill up the length of the field.

If Sun ships 1.6 with this bridge then all JDBC applications that use the bridge driver are in for a nasty calamity. Sun's response thus far is that they haven't done anything to the bridge driver but repeated test cases and simple examples show that is not the case.

Please if you use the JdbcOdbc bridge driver in your applications take a moment to register and comment on the bug report to be found at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6335589

You need to register with Sun to be able to comment and as well to vote on the bug but I think those few minutes of time would be well spent.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Max
I dont know whether it is Mustang error.I am seeing it even today for PreparedStatement.
Here is a thread on the same topic
http://www.coderanch.com/t/300537/JDBC/java/Inserting-varchar-field-PreparedStatement

The above soln does not work whne the fields are on type nvarchar (supports UNICODE).


Groovy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Serious JdbcOdbc bridge driver regression bug
 
Similar Threads
Drag & Drop problem
parse()-Method of NumberFormat-Object throws Exception
SCJP Brainteaser (9)
Hiding modal dialog
Calendar in Java 1.5 and 1.3