public void testRowCountIsStateless() throws SqlJetException {
db.runReadTransaction(new ISqlJetTransaction() {
public Object run(SqlJetDb db) throws SqlJetException {
SqlJetScope scope = new SqlJetScope(new Object[] {"AB"}, new Object[] {"BC"});
ISqlJetCursor cursor = db.getTable("table").scope("names_idx", scope);
Assert.assertTrue(!cursor.eof());
long count = cursor.getRowCount();
Assert.assertTrue(count > 0);
Assert.assertTrue(!cursor.eof());
Assert.assertTrue(!cursor.eof());
Assert.assertTrue(cursor.getRowCount() > 0);