Value result = resource.fetchArray(env, OCI_BOTH);
Value result = resource.fetchArray(env, JdbcResultResource.FETCH_BOTH);
  public static boolean oci_fetch(Env env,                                  @NotNull OracleStatement stmt)  {    try {      if (stmt == null)        return false;      JdbcResultResource resource = new JdbcResultResource(null, stmt.getResultSet(), null);      Value result = resource.fetchArray(env, OCI_BOTH);      stmt.setResultBuffer(result);      if (!(result instanceof ArrayValue)) {        return false;      }      ArrayValue arrayValue = (ArrayValue) result;      for (Map.Entry<String,Value> entry : stmt.getByNameVariables().entrySet()) {        String fieldName = entry.getKey();        Value var = entry.getValue();        Value newValue = arrayValue.get(StringValue.create(fieldName));        var.set(newValue);      }      // See oci_num_rows()      stmt.increaseFetchedRows();      return true;    } catch (Exception ex) {      log.log(Level.FINE, ex.toString(), ex);      try {        stmt.resetByNameVariables();      } catch (Exception ex2) {        log.log(Level.FINE, ex2.toString(), ex2);      }      return false;    }  }