Object object = pg_fetch_result(env, result, LongValue.create(row), LongValue.create(fieldNumber));
ResultSetMetaData metaData = result.getMetaData(); String typeName = metaData.getColumnTypeName(fieldNumber+1); if (typeName.equals("bool")) { return 1; }  Value value = pg_fetch_result(env, result, LongValue.create(row), LongValue.create(fieldNumber));
  public static int pg_field_prtlen(Env env,                                    @NotNull PostgresResult result,                                    Value rowNumber,                                    @Optional("-1") Value fieldNameOrNumber)  {    try {      int row = rowNumber.toInt();      if (fieldNameOrNumber.toString().equals("-1")) {        fieldNameOrNumber = rowNumber;        row = -1;      }      int fieldNumber = result.getColumnNumber(fieldNameOrNumber, 0);      Object object = pg_fetch_result(env,                                      result,                                      LongValue.create(row),                                      LongValue.create(fieldNumber));      // Step the cursor back to the original position      // See php/430p      result.getResultSet().relative(-1);      return object.toString().length();    } catch (Exception ex) {      log.log(Level.FINE, ex.toString(), ex);      return -1;    }  }