Quantcast
Channel: SCN : Popular Discussions - SAP MaxDB
Viewing all articles
Browse latest Browse all 1545

The operation is not allowed for result set type FORWARD_ONLY

$
0
0

Hi,

 

I am trying to use scroll insensitive resultset in following manner-

Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet rs = stmt.executeQuery("some sql here");
rs.last();

but the rs.last() throws this exception-

 

com.sap.dbtech.jdbc.exceptions.SQLExceptionSapDB: The operation is not allowed for result set type FORWARD_ONLY.     at com.sap.dbtech.jdbc.ResultSetSapDB.assertNotForwardOnly(ResultSetSapDB.java:2725)     at com.sap.dbtech.jdbc.ResultSetSapDB.last(ResultSetSapDB.java:557)

 

Database version: Kernel    7.5.0    Build 019-121-082-363

Driver Version: MaxDB JDBC Driver, MySQL MaxDB, 7.6.0    Build 030-000-005-567

 

This used to work with 7.5 version driver. Why this is failing with 7.6 driver, any clues?

 

Thanks,

 

Vinod


Viewing all articles
Browse latest Browse all 1545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>