/** * Convert a byte array to a hex encoded string. * * @param value the byte array * @return the hex encoded string */ static final String convertBytesToHex(byte[] value) { return convertBytesToHex(value, value.length); }
ctx.render() .sql("X'") .sql(convertBytesToHex(value)) .sql('\''); ctx.render() .sql("X'") .sql(convertBytesToHex(value)) .sql('\'');