*
The moose likes JDBC 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
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Does someone has the same problem like me ? " Watch "Does someone has the same problem like me ? " New topic
Author

Does someone has the same problem like me ?

zheng yu
Greenhorn

Joined: Apr 25, 2001
Posts: 28
TOMCAt3.2.1+Oracle8.1.7(classes12.zip) + 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 .
Thankx
ZY
David O'Meara
Rancher

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...
Dave.
 
 
subject: Does someone has the same problem like me ?