CPD Results
The following document contains the results of PMD's CPD 7.17.0.
Duplications
| File | Line |
|---|---|
| org/apache/shardingsphere/database/protocol/mysql/packet/command/query/binary/execute/protocol/MySQLByteLenencBinaryProtocolValue.java | 51 |
| org/apache/shardingsphere/database/protocol/mysql/packet/command/query/text/MySQLTextResultSetRowPacket.java | 94 |
payload.writeStringLenenc(value.toString());
}
}
private byte[] readBlob(final Blob value) {
try (InputStream inputStream = value.getBinaryStream()) {
return ByteStreams.toByteArray(inputStream);
} catch (final IOException | SQLException ex) {
throw new UnknownSQLException(ex);
}
}
private String readClob(final Clob value) {
try (Reader reader = value.getCharacterStream()) {
return CharStreams.toString(reader);
} catch (final IOException | SQLException ex) {
throw new UnknownSQLException(ex);
}
} | |
