return LongValue.create(result.getNumRows());
if (numRows < 0) { env.warning(L.l("supplied argument is not a valid PostgreSQL result resource")); }
  public static Value pg_num_rows(Env env,                                  @NotNull PostgresResult result)  {    try {      // (result.getResultSet() == null) should be cleaned and      // pg_get_result should return a null PostgresResult php/433t      if ((result == null) || (result.getResultSet() == null)) {        env.warning(L.l("supplied argument is not a valid PostgreSQL result resource"));        return NullValue.NULL;      }      return LongValue.create(result.getNumRows());    } catch (Exception ex) {      log.log(Level.FINE, ex.toString(), ex);      return LongValue.create(-1);    }  }