Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Does jdbc support data type ROWID?

572551Apr 28 2007 — edited Apr 28 2007
Hi,
I've got a column of type ROWID named id in my_tab, I tried to retrieve the values in Java, as follows but fails:

ResultSet rs = conn.getStatement().executeQuery("select id from my_tab");
while (rs.next()) {
java.sql.RowId id = rs.getRowId("id"); //fails, anything wrong here?
}

the error msg is:
Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSetImpl.getRowId(Ljava/lang/String;)Ljava/sql/RowId;

Thank you!

Message was edited by:
user569548

Message was edited by:
user569548
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 26 2007
Added on Apr 28 2007
1 comment
994 views