I am using the ojdbc5.jar
.
First, I am getting DatabaseMetaData
from sql connection
Then I am calling getProcedureColumns()
method on DatabaseMetaData
which returns me a resultset.
When I print the fetchsize of the resultset
, it returns 1.
Then, I tried setting this fetchsize using the method setFetchSize()
method on the resultset.
Again, when I print the fetchSize of the resultset
, it prints 1.
Why, the setFetchSize()
method of the resultset
is not working ?
DatabaseMetaData metaData = connection.getMetaData();
ResultSet result = metaData.getProcedureColumns(null,"IFSAPP","DECODE",null);
System.out.println(result.getFetchSize());
result.setFetchSize(100);
System.out.println(result.getFetchSize());
Result of the above code snippet is:
1
1