Skip navigation
13644 Views 2 Replies Latest reply: Jul 19, 2010 2:46 PM by Nztest RSS
Nztest New Enzee 2 posts since
Jul 19, 2010
Currently Being Moderated

Jul 19, 2010 2:30 PM

Not able to make netezza result set scrollable.

Hi ,

 

Does Netezza support "TYPE_SCROLL_INSENSITIVE" result set type.? If so how?

 

I am trying to fetch resultset as follows:

 

ResultSet rs=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
                    ResultSet.CONCUR_UPDATABLE).executeQuery(sqlQuery);

 

 

The resultSet I am getting back is 1003 (TYPE_FORWARD_ONLY) not 1005 (TYPE_SCROLL_INSENSITIVE).

 

If I use rs.beforeFirst() ,it's throwing me an error.

 

org.netezza.util.PSQLException: ResultSet is TYPE_FORWARD_ONLY

 

I am using JDBC driver 4.5.4.

 

Please let me know how I can make the result set scrollable.

 

Thanks in advance..

More Like This

  • Retrieving data ...

Bookmarked By (0)