rs = ((FBStatement)s).getCachedResultSet();
rs = ((FBStatement)s).getCachedResultSet(true);
    private ResultSet doQuery(String sql, List params) throws SQLException {        boolean ourTransaction = false;        if (!c.inTransaction()) {            try {                trans.begin();                ourTransaction = true;            }            catch (ResourceException re) {                throw new SQLException("couldn't work with local transaction: " + re);            }        }        PreparedStatement s = getStatement(sql);        for (int i = 0; i < params.size(); i++) {            s.setString(i + 1, (String)params.get(i));        }        ResultSet rs = null;        try {            s.execute();            rs = ((FBStatement)s).getCachedResultSet();        }        finally {            if (ourTransaction) {                try {                    trans.commit();                }                catch (ResourceException re) {                    throw new SQLException("couldn't work with local transaction: " + re);                }            }        }        return rs;    }