Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetPreparedStatement.java @ 890:7621c80b08da
Optimise code, use append(char) instead of append(String)
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 04 Apr 2024 19:13:43 +0200 (13 months ago) |
parents | 485c75b35cc9 |
children | 07a4998898a8 |
comparison
equal
deleted
inserted
replaced
889:485c75b35cc9 | 890:7621c80b08da |
---|---|
766 for (int i = 0; i < len; i++) { | 766 for (int i = 0; i < len; i++) { |
767 byte b = x[i]; | 767 byte b = x[i]; |
768 hex.append(HEXES[(b & 0xF0) >> 4]) | 768 hex.append(HEXES[(b & 0xF0) >> 4]) |
769 .append(HEXES[(b & 0x0F)]); | 769 .append(HEXES[(b & 0x0F)]); |
770 } | 770 } |
771 hex.append("'"); // end of hex string value | 771 hex.append('\''); // end of hex string value |
772 setValue(parameterIndex, hex.toString()); | 772 setValue(parameterIndex, hex.toString()); |
773 } | 773 } |
774 | 774 |
775 /** | 775 /** |
776 * Sets the designated parameter to the given Reader object, which is the | 776 * Sets the designated parameter to the given Reader object, which is the |