Hi,
When I execute sql query SELECT * FROM TABLE (TEST.getDevices())
in SqlDeveloper I've got about 200 rows, but when I try to execute it in java:
//cut here
String query = "SELECT * FROM TABLE (TEST.getDevices())";
PreparedStatement stmt = null;
ResultSet rset = null;
try {
stmt = oracleConnection.prepareStatement(query);
rset = stmt.executeQuery();
rset.next();
System.out.println(rset.getInt(1));
//cut here
I get empty ResultSet and so on the exception is thrown.
I've tried query SELECT Count(*) a FROM TABLE (TEST.getDevices())
In SqlDeveloper result is 200, in java app is 0.
What could be reason that get empty ResultSet in ma app?