docs: public String convertToString(Object value) {
      String result;
      if (value == null) {
        result = "NULL";
      } else {
  
        if (value instanceof Timestamp) {
          result = new SimpleDateFormat(P6SpyOptions.getActiveInstance().getDatabaseDialectTimestampFormat()).format(value);
        } else if (value instanceof Date) {
          result = new SimpleDateFormat(P6SpyOptions.getActiveInstance().getDatabaseDialectDateFormat()).format(value);
        } else if (value instanceof Boolean) {
          if ("numeric".equals(P6SpyOptions.getActiveInstance().getDatabaseDialectBooleanFormat())) {
            result = Boolean.FALSE.equals(value) ? "0" : "1";
          } else {
            result = value.toString();
          }
        } else if (value instanceof byte[]) {
          if (P6LogOptions.getActiveInstance().getExcludebinary()) {
            result = "[binary]";
          } else {
            result = toHexString((byte[]) value);
          }
          
          // we should not do ((Blob) value).getBinaryStream(). ...
          // as inputstream might not be re-rea
  //      } else  if (value instanceof Blob) {
  //        if (P6LogOptions.getActiveInstance().getExcludebinary()) {
  //          result = "[binary]";
  //        } else {
  //          result = value.toString();
  //        }
        } else {
          result = value.toString();
        }
  
        result = quoteIfNeeded(result, value);
      }