permaculture playing cards
The moose likes JDBC and Relational Databases 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Serious JdbcOdbc bridge driver regression bug" Watch "Serious JdbcOdbc bridge driver regression bug" New topic

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

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: 8927

I dont know whether it is Mustang error.I am seeing it even today for PreparedStatement.
Here is a thread on the same topic

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

I agree. Here's the link:
subject: Serious JdbcOdbc bridge driver regression bug
It's not a secret anymore!