File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Does someone has the same problem like me ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Does someone has the same problem like me ? " Watch "Does someone has the same problem like me ? " New topic

Does someone has the same problem like me ?

zheng yu

Joined: Apr 25, 2001
Posts: 28
TOMCAt3.2.1+Oracle8.1.7( + JDK1.2.2
In my program , i use createStatement( TYPE_SCROLL_INSENSITIVE ,CONCUR_READ_ONLY ) to get scrollable resultset. And i use first() /last() /absolute() to implement my pager logic .
The problem is :
when i use getString(index) to get field data( defined as VARCHAR2) , what i get is its INNER CODE . for example :
for a field value like "1234" , what i get is "0x31323334"
Does some one face same problem like me ? does this problem has something to do with locale setting & charset ? My Locale is JP .
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Not sure exactly, but I think the problem has been reported before and was due to using createStatement( TYPE_SCROLL_INSENSITIVE ,CONCUR_READ_ONLY ) rather than just createStatement().
If this can't solve you problem, you'll have to parse the text yourself (not recommended) or hopefully someone else has a suggestion...
It is sorta covered in the JavaRanch Style Guide.
subject: Does someone has the same problem like me ?
It's not a secret anymore!