SQLite Result Set problem
Hello everybody and best wishes for the upcoming new year.
I would like to ask you because I came accross a huge problem for me and I am trying to figure out a way to get rid of it..
I want to execute a simple query or a joint query
String query = "SELECT * FROM Movie";
ResultSet rs = stmt.executeQuery(query);
so far so good but now i want to perform two test to the result set
if(!rs.next()){ //test if the result set is null
return false;
}
else{
rs.last();
int size = rs.getRow(); //get the lines selected from this query
String [] myResult = new String[size];
rs.beforeFirst();
while(rs.next()){
//do something
}
return true;
}
}
I get an error "SQLite only supports TYPE_FORWARD_ONLY cursors"
it is a pretty clear error and there is nothing i can do to fix it.
What I want to ask is for ideas to work aroung this problem!!!
Thank you in advance...